[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.1ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 30ms (Views: 10.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:48:14.143509"], ["updated_at", "2015-02-20 16:48:14.143509"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:48:14.159143"], ["updated_at", "2015-02-20 16:48:14.159143"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:48:14.164621"], ["updated_at", "2015-02-20 16:48:14.164621"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:48:14.169646"], ["updated_at", "2015-02-20 16:48:14.169646"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:48:14.175095"], ["updated_at", "2015-02-20 16:48:14.175095"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:48:14.177523"], ["updated_at", "2015-02-20 16:48:14.177523"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (637.5ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.4ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (5.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (5.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (2.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:53:42.315254"], ["updated_at", "2015-02-20 16:53:42.315254"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:53:42.329259"], ["updated_at", "2015-02-20 16:53:42.329259"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:53:42.766979"], ["updated_at", "2015-02-20 16:53:42.766979"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:53:42.773555"], ["updated_at", "2015-02-20 16:53:42.773555"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:53:42.779851"], ["updated_at", "2015-02-20 16:53:42.779851"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:53:42.784943"], ["updated_at", "2015-02-20 16:53:42.784943"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 25ms (Views: 25.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (2.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:20.363286"], ["updated_at", "2015-02-20 16:55:20.363286"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:20.897722"], ["updated_at", "2015-02-20 16:55:20.897722"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:20.903354"], ["updated_at", "2015-02-20 16:55:20.903354"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:20.909125"], ["updated_at", "2015-02-20 16:55:20.909125"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:20.914074"], ["updated_at", "2015-02-20 16:55:20.914074"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:20.916993"], ["updated_at", "2015-02-20 16:55:20.916993"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (83.5ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (629.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:59.169651"], ["updated_at", "2015-02-20 16:55:59.169651"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:59.190611"], ["updated_at", "2015-02-20 16:55:59.190611"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:59.197194"], ["updated_at", "2015-02-20 16:55:59.197194"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:59.786022"], ["updated_at", "2015-02-20 16:55:59.786022"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:59.793342"], ["updated_at", "2015-02-20 16:55:59.793342"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:55:59.796549"], ["updated_at", "2015-02-20 16:55:59.796549"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (2.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 35ms (Views: 12.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:07.262428"], ["updated_at", "2015-02-20 16:56:07.262428"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:07.278965"], ["updated_at", "2015-02-20 16:56:07.278965"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:07.284634"], ["updated_at", "2015-02-20 16:56:07.284634"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:07.288932"], ["updated_at", "2015-02-20 16:56:07.288932"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:07.295896"], ["updated_at", "2015-02-20 16:56:07.295896"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:07.300758"], ["updated_at", "2015-02-20 16:56:07.300758"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 37ms (Views: 11.1ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.7ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:18.320785"], ["updated_at", "2015-02-20 16:56:18.320785"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:18.331826"], ["updated_at", "2015-02-20 16:56:18.331826"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:18.339772"], ["updated_at", "2015-02-20 16:56:18.339772"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (3.0ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:18.343125"], ["updated_at", "2015-02-20 16:56:18.343125"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:18.351925"], ["updated_at", "2015-02-20 16:56:18.351925"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:18.357715"], ["updated_at", "2015-02-20 16:56:18.357715"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:35.015587"], ["updated_at", "2015-02-20 16:56:35.015587"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:35.031391"], ["updated_at", "2015-02-20 16:56:35.031391"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:35.584145"], ["updated_at", "2015-02-20 16:56:35.584145"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:35.589617"], ["updated_at", "2015-02-20 16:56:35.589617"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:35.592695"], ["updated_at", "2015-02-20 16:56:35.592695"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:35.600444"], ["updated_at", "2015-02-20 16:56:35.600444"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.7ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 41ms (Views: 14.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["encrypted_password", "asdf"], ["created_at", "2015-02-20 16:56:47.720792"], ["updated_at", "2015-02-20 16:56:47.720792"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:47.739164"], ["updated_at", "2015-02-20 16:56:47.739164"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:47.749480"], ["updated_at", "2015-02-20 16:56:47.749480"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:47.754350"], ["updated_at", "2015-02-20 16:56:47.754350"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:47.763777"], ["updated_at", "2015-02-20 16:56:47.763777"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:47.769108"], ["updated_at", "2015-02-20 16:56:47.769108"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:56:47.776631"], ["updated_at", "2015-02-20 16:56:47.776631"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (2.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 34ms (Views: 12.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["encrypted_password", "asdf"], ["created_at", "2015-02-20 16:57:24.935952"], ["updated_at", "2015-02-20 16:57:24.935952"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:24.957862"], ["updated_at", "2015-02-20 16:57:24.957862"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:24.968389"], ["updated_at", "2015-02-20 16:57:24.968389"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:24.973901"], ["updated_at", "2015-02-20 16:57:24.973901"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:24.979550"], ["updated_at", "2015-02-20 16:57:24.979550"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:24.982210"], ["updated_at", "2015-02-20 16:57:24.982210"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:24.990152"], ["updated_at", "2015-02-20 16:57:24.990152"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (102.1ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (628.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.3ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.6ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (3.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["encrypted_password", "asdf"], ["created_at", "2015-02-20 16:57:50.306561"], ["updated_at", "2015-02-20 16:57:50.306561"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:50.395333"], ["updated_at", "2015-02-20 16:57:50.395333"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:50.835804"], ["updated_at", "2015-02-20 16:57:50.835804"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:50.838628"], ["updated_at", "2015-02-20 16:57:50.838628"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:50.846073"], ["updated_at", "2015-02-20 16:57:50.846073"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:50.851628"], ["updated_at", "2015-02-20 16:57:50.851628"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:57:50.857182"], ["updated_at", "2015-02-20 16:57:50.857182"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (17.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (632.4ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["encrypted_password", "asdf"], ["created_at", "2015-02-20 16:58:28.621631"], ["updated_at", "2015-02-20 16:58:28.621631"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:28.715272"], ["updated_at", "2015-02-20 16:58:28.715272"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:29.193553"], ["updated_at", "2015-02-20 16:58:29.193553"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:29.197110"], ["updated_at", "2015-02-20 16:58:29.197110"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:29.207506"], ["updated_at", "2015-02-20 16:58:29.207506"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:29.213802"], ["updated_at", "2015-02-20 16:58:29.213802"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:29.220132"], ["updated_at", "2015-02-20 16:58:29.220132"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["encrypted_password", "asdf"], ["created_at", "2015-02-20 16:58:39.389605"], ["updated_at", "2015-02-20 16:58:39.389605"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:39.483905"], ["updated_at", "2015-02-20 16:58:39.483905"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:39.490793"], ["updated_at", "2015-02-20 16:58:39.490793"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:39.938583"], ["updated_at", "2015-02-20 16:58:39.938583"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:39.944096"], ["updated_at", "2015-02-20 16:58:39.944096"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:39.949544"], ["updated_at", "2015-02-20 16:58:39.949544"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 16:58:39.954805"], ["updated_at", "2015-02-20 16:58:39.954805"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (2.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["encrypted_password", "asdf"], ["created_at", "2015-02-20 17:01:20.739609"], ["updated_at", "2015-02-20 17:01:20.739609"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 77ms (Views: 9.4ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:21.313318"], ["updated_at", "2015-02-20 17:01:21.313318"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:21.326265"], ["updated_at", "2015-02-20 17:01:21.326265"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:21.329616"], ["updated_at", "2015-02-20 17:01:21.329616"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:21.336850"], ["updated_at", "2015-02-20 17:01:21.336850"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:21.342315"], ["updated_at", "2015-02-20 17:01:21.342315"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:21.347815"], ["updated_at", "2015-02-20 17:01:21.347815"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 41ms (Views: 14.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["encrypted_password", "asdf"], ["created_at", "2015-02-20 17:01:41.439005"], ["updated_at", "2015-02-20 17:01:41.439005"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:41.464646"], ["updated_at", "2015-02-20 17:01:41.464646"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:41.480186"], ["updated_at", "2015-02-20 17:01:41.480186"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:41.484889"], ["updated_at", "2015-02-20 17:01:41.484889"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:41.493622"], ["updated_at", "2015-02-20 17:01:41.493622"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:41.500125"], ["updated_at", "2015-02-20 17:01:41.500125"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:01:41.505010"], ["updated_at", "2015-02-20 17:01:41.505010"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 34ms (Views: 12.3ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:02:31.234118"], ["updated_at", "2015-02-20 17:02:31.234118"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:02:31.243620"], ["updated_at", "2015-02-20 17:02:31.243620"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:02:31.252506"], ["updated_at", "2015-02-20 17:02:31.252506"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:02:31.259326"], ["updated_at", "2015-02-20 17:02:31.259326"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:02:31.266186"], ["updated_at", "2015-02-20 17:02:31.266186"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:02:31.273359"], ["updated_at", "2015-02-20 17:02:31.273359"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 81ms (Views: 12.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:42.310430"], ["updated_at", "2015-02-20 17:03:42.310430"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:42.320568"], ["updated_at", "2015-02-20 17:03:42.320568"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:42.329013"], ["updated_at", "2015-02-20 17:03:42.329013"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:42.334066"], ["updated_at", "2015-02-20 17:03:42.334066"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:42.338973"], ["updated_at", "2015-02-20 17:03:42.338973"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:42.343938"], ["updated_at", "2015-02-20 17:03:42.343938"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:50.740921"], ["updated_at", "2015-02-20 17:03:50.740921"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:50.753397"], ["updated_at", "2015-02-20 17:03:50.753397"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:51.224416"], ["updated_at", "2015-02-20 17:03:51.224416"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:51.229600"], ["updated_at", "2015-02-20 17:03:51.229600"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:51.237537"], ["updated_at", "2015-02-20 17:03:51.237537"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:51.242799"], ["updated_at", "2015-02-20 17:03:51.242799"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (611.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:03:59.741572"], ["updated_at", "2015-02-20 17:03:59.741572"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:00.260470"], ["updated_at", "2015-02-20 17:04:00.260470"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:00.267706"], ["updated_at", "2015-02-20 17:04:00.267706"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:00.273212"], ["updated_at", "2015-02-20 17:04:00.273212"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:00.276090"], ["updated_at", "2015-02-20 17:04:00.276090"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:00.283782"], ["updated_at", "2015-02-20 17:04:00.283782"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (4.0ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 33ms (Views: 10.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:28.190938"], ["updated_at", "2015-02-20 17:04:28.190938"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:28.205255"], ["updated_at", "2015-02-20 17:04:28.205255"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:28.210832"], ["updated_at", "2015-02-20 17:04:28.210832"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:28.217541"], ["updated_at", "2015-02-20 17:04:28.217541"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:28.220427"], ["updated_at", "2015-02-20 17:04:28.220427"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:28.226783"], ["updated_at", "2015-02-20 17:04:28.226783"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (4.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 35ms (Views: 12.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:40.279193"], ["updated_at", "2015-02-20 17:04:40.279193"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:40.299372"], ["updated_at", "2015-02-20 17:04:40.299372"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:40.310926"], ["updated_at", "2015-02-20 17:04:40.310926"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:40.315353"], ["updated_at", "2015-02-20 17:04:40.315353"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:40.322503"], ["updated_at", "2015-02-20 17:04:40.322503"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:04:40.333766"], ["updated_at", "2015-02-20 17:04:40.333766"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 34ms (Views: 11.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:09:47.383480"], ["updated_at", "2015-02-20 17:09:47.383480"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:09:47.396028"], ["updated_at", "2015-02-20 17:09:47.396028"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:09:47.402416"], ["updated_at", "2015-02-20 17:09:47.402416"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:09:47.407845"], ["updated_at", "2015-02-20 17:09:47.407845"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:09:47.410532"], ["updated_at", "2015-02-20 17:09:47.410532"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:09:47.416929"], ["updated_at", "2015-02-20 17:09:47.416929"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (368.7ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:10:09.061948"], ["updated_at", "2015-02-20 17:10:09.061948"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:10:09.556729"], ["updated_at", "2015-02-20 17:10:09.556729"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:10:09.561539"], ["updated_at", "2015-02-20 17:10:09.561539"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:10:09.566772"], ["updated_at", "2015-02-20 17:10:09.566772"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:10:09.572180"], ["updated_at", "2015-02-20 17:10:09.572180"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:10:09.575707"], ["updated_at", "2015-02-20 17:10:09.575707"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (2.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 33ms (Views: 11.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:11:43.207031"], ["updated_at", "2015-02-20 17:11:43.207031"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:11:43.222713"], ["updated_at", "2015-02-20 17:11:43.222713"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:11:43.228498"], ["updated_at", "2015-02-20 17:11:43.228498"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:11:43.234944"], ["updated_at", "2015-02-20 17:11:43.234944"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:11:43.237536"], ["updated_at", "2015-02-20 17:11:43.237536"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "shipping"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:11:43.244162"], ["updated_at", "2015-02-20 17:11:43.244162"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 29ms (Views: 10.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:13.945788"], ["updated_at", "2015-02-20 17:13:13.945788"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:13.957667"], ["updated_at", "2015-02-20 17:13:13.957667"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:13.961225"], ["updated_at", "2015-02-20 17:13:13.961225"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:13.967376"], ["updated_at", "2015-02-20 17:13:13.967376"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:13.973873"], ["updated_at", "2015-02-20 17:13:13.973873"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:13.980964"], ["updated_at", "2015-02-20 17:13:13.980964"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (345.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.3ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 28ms (Views: 8.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:53.904597"], ["updated_at", "2015-02-20 17:13:53.904597"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:53.926089"], ["updated_at", "2015-02-20 17:13:53.926089"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:53.933534"], ["updated_at", "2015-02-20 17:13:53.933534"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:53.940244"], ["updated_at", "2015-02-20 17:13:53.940244"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:53.945977"], ["updated_at", "2015-02-20 17:13:53.945977"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:53.951040"], ["updated_at", "2015-02-20 17:13:53.951040"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:13:53.954350"], ["updated_at", "2015-02-20 17:13:53.954350"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (632.5ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:14:14.691661"], ["updated_at", "2015-02-20 17:14:14.691661"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:14:14.710370"], ["updated_at", "2015-02-20 17:14:14.710370"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:14:15.217054"], ["updated_at", "2015-02-20 17:14:15.217054"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:14:15.219699"], ["updated_at", "2015-02-20 17:14:15.219699"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:14:15.226453"], ["updated_at", "2015-02-20 17:14:15.226453"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:14:15.231154"], ["updated_at", "2015-02-20 17:14:15.231154"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:14:15.280579"], ["updated_at", "2015-02-20 17:14:15.280579"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (2.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.3ms)[0m select sqlite_version(*) [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (633.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.3ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 29ms (Views: 9.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:10.264189"], ["updated_at", "2015-02-20 17:21:10.264189"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:10.278408"], ["updated_at", "2015-02-20 17:21:10.278408"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:10.281972"], ["updated_at", "2015-02-20 17:21:10.281972"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:10.288706"], ["updated_at", "2015-02-20 17:21:10.288706"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:10.293748"], ["updated_at", "2015-02-20 17:21:10.293748"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:10.298482"], ["updated_at", "2015-02-20 17:21:10.298482"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:53.948731"], ["updated_at", "2015-02-20 17:21:53.948731"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:53.964775"], ["updated_at", "2015-02-20 17:21:53.964775"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:54.422589"], ["updated_at", "2015-02-20 17:21:54.422589"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:54.427533"], ["updated_at", "2015-02-20 17:21:54.427533"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:54.432198"], ["updated_at", "2015-02-20 17:21:54.432198"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:54.434692"], ["updated_at", "2015-02-20 17:21:54.434692"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:21:54.542548"], ["updated_at", "2015-02-20 17:21:54.542548"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (2.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:11.354260"], ["updated_at", "2015-02-20 17:22:11.354260"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:11.423486"], ["updated_at", "2015-02-20 17:22:11.423486"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:11.430666"], ["updated_at", "2015-02-20 17:22:11.430666"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:11.437551"], ["updated_at", "2015-02-20 17:22:11.437551"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:11.445274"], ["updated_at", "2015-02-20 17:22:11.445274"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:11.448934"], ["updated_at", "2015-02-20 17:22:11.448934"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:11.457269"], ["updated_at", "2015-02-20 17:22:11.457269"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 33ms (Views: 8.4ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:36.733723"], ["updated_at", "2015-02-20 17:22:36.733723"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:36.750415"], ["updated_at", "2015-02-20 17:22:36.750415"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:36.753645"], ["updated_at", "2015-02-20 17:22:36.753645"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:36.760797"], ["updated_at", "2015-02-20 17:22:36.760797"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:36.766119"], ["updated_at", "2015-02-20 17:22:36.766119"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:36.771228"], ["updated_at", "2015-02-20 17:22:36.771228"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:22:36.826749"], ["updated_at", "2015-02-20 17:22:36.826749"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.5ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (635.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:23:25.275600"], ["updated_at", "2015-02-20 17:23:25.275600"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:23:25.293807"], ["updated_at", "2015-02-20 17:23:25.293807"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:23:25.299322"], ["updated_at", "2015-02-20 17:23:25.299322"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:23:25.302122"], ["updated_at", "2015-02-20 17:23:25.302122"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:23:25.309141"], ["updated_at", "2015-02-20 17:23:25.309141"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:23:25.314705"], ["updated_at", "2015-02-20 17:23:25.314705"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:23:25.319997"], ["updated_at", "2015-02-20 17:23:25.319997"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:24:18.674305"], ["updated_at", "2015-02-20 17:24:18.674305"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:24:19.162175"], ["updated_at", "2015-02-20 17:24:19.162175"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:24:19.164909"], ["updated_at", "2015-02-20 17:24:19.164909"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:24:19.172554"], ["updated_at", "2015-02-20 17:24:19.172554"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:24:19.179147"], ["updated_at", "2015-02-20 17:24:19.179147"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:24:19.184236"], ["updated_at", "2015-02-20 17:24:19.184236"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:24:19.287755"], ["updated_at", "2015-02-20 17:24:19.287755"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 33ms (Views: 10.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:06.121439"], ["updated_at", "2015-02-20 17:25:06.121439"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:06.137273"], ["updated_at", "2015-02-20 17:25:06.137273"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:06.143673"], ["updated_at", "2015-02-20 17:25:06.143673"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:06.150081"], ["updated_at", "2015-02-20 17:25:06.150081"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:06.153467"], ["updated_at", "2015-02-20 17:25:06.153467"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:06.161150"], ["updated_at", "2015-02-20 17:25:06.161150"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:06.215089"], ["updated_at", "2015-02-20 17:25:06.215089"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.7ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:13.009103"], ["updated_at", "2015-02-20 17:25:13.009103"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:13.029138"], ["updated_at", "2015-02-20 17:25:13.029138"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:13.036136"], ["updated_at", "2015-02-20 17:25:13.036136"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:13.042193"], ["updated_at", "2015-02-20 17:25:13.042193"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:13.045120"], ["updated_at", "2015-02-20 17:25:13.045120"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:13.053279"], ["updated_at", "2015-02-20 17:25:13.053279"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:25:13.059764"], ["updated_at", "2015-02-20 17:25:13.059764"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms) [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:07.945160"], ["updated_at", "2015-02-20 17:26:07.945160"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:08.019622"], ["updated_at", "2015-02-20 17:26:08.019622"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:08.026123"], ["updated_at", "2015-02-20 17:26:08.026123"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:08.028564"], ["updated_at", "2015-02-20 17:26:08.028564"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:08.035801"], ["updated_at", "2015-02-20 17:26:08.035801"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:08.041445"], ["updated_at", "2015-02-20 17:26:08.041445"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:08.047277"], ["updated_at", "2015-02-20 17:26:08.047277"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (634.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 31ms (Views: 8.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:28.983209"], ["updated_at", "2015-02-20 17:26:28.983209"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:28.997786"], ["updated_at", "2015-02-20 17:26:28.997786"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:29.003801"], ["updated_at", "2015-02-20 17:26:29.003801"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:29.006358"], ["updated_at", "2015-02-20 17:26:29.006358"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:29.013310"], ["updated_at", "2015-02-20 17:26:29.013310"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:29.018043"], ["updated_at", "2015-02-20 17:26:29.018043"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:26:29.023299"], ["updated_at", "2015-02-20 17:26:29.023299"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.5ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (634.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 34ms (Views: 10.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:00.664525"], ["updated_at", "2015-02-20 17:27:00.664525"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:00.679374"], ["updated_at", "2015-02-20 17:27:00.679374"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:00.684607"], ["updated_at", "2015-02-20 17:27:00.684607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:00.689737"], ["updated_at", "2015-02-20 17:27:00.689737"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:00.692701"], ["updated_at", "2015-02-20 17:27:00.692701"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:00.698985"], ["updated_at", "2015-02-20 17:27:00.698985"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:00.703698"], ["updated_at", "2015-02-20 17:27:00.703698"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:40.672173"], ["updated_at", "2015-02-20 17:27:40.672173"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:40.688655"], ["updated_at", "2015-02-20 17:27:40.688655"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:40.694434"], ["updated_at", "2015-02-20 17:27:40.694434"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:40.697225"], ["updated_at", "2015-02-20 17:27:40.697225"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:40.705568"], ["updated_at", "2015-02-20 17:27:40.705568"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:40.712054"], ["updated_at", "2015-02-20 17:27:40.712054"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:27:40.718524"], ["updated_at", "2015-02-20 17:27:40.718524"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.3ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 34ms (Views: 11.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:28:47.256465"], ["updated_at", "2015-02-20 17:28:47.256465"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:28:47.269456"], ["updated_at", "2015-02-20 17:28:47.269456"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:28:47.273927"], ["updated_at", "2015-02-20 17:28:47.273927"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:28:47.281140"], ["updated_at", "2015-02-20 17:28:47.281140"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:28:47.286480"], ["updated_at", "2015-02-20 17:28:47.286480"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:28:47.291789"], ["updated_at", "2015-02-20 17:28:47.291789"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:28:47.346159"], ["updated_at", "2015-02-20 17:28:47.346159"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.5ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 28ms (Views: 9.3ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:06.729516"], ["updated_at", "2015-02-20 17:29:06.729516"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:06.747791"], ["updated_at", "2015-02-20 17:29:06.747791"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:06.752988"], ["updated_at", "2015-02-20 17:29:06.752988"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:06.758216"], ["updated_at", "2015-02-20 17:29:06.758216"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:06.760821"], ["updated_at", "2015-02-20 17:29:06.760821"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:06.767424"], ["updated_at", "2015-02-20 17:29:06.767424"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:06.772948"], ["updated_at", "2015-02-20 17:29:06.772948"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (98.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (636.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 34ms (Views: 12.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:25.593633"], ["updated_at", "2015-02-20 17:29:25.593633"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:25.608394"], ["updated_at", "2015-02-20 17:29:25.608394"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:25.614585"], ["updated_at", "2015-02-20 17:29:25.614585"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:25.619618"], ["updated_at", "2015-02-20 17:29:25.619618"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:25.625624"], ["updated_at", "2015-02-20 17:29:25.625624"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:25.628560"], ["updated_at", "2015-02-20 17:29:25.628560"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:25.687277"], ["updated_at", "2015-02-20 17:29:25.687277"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:25.716374"], ["updated_at", "2015-02-20 17:29:25.716374"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.3ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 32ms (Views: 11.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:29:59.979679"], ["updated_at", "2015-02-20 17:29:59.979679"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:30:00.014103"], ["updated_at", "2015-02-20 17:30:00.014103"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:30:00.021745"], ["updated_at", "2015-02-20 17:30:00.021745"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:30:00.033894"], ["updated_at", "2015-02-20 17:30:00.033894"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:30:00.039636"], ["updated_at", "2015-02-20 17:30:00.039636"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:30:00.045019"], ["updated_at", "2015-02-20 17:30:00.045019"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:30:00.051243"], ["updated_at", "2015-02-20 17:30:00.051243"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:30:00.054134"], ["updated_at", "2015-02-20 17:30:00.054134"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:30:00.059605"], ["updated_at", "2015-02-20 17:30:00.059605"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:03.527340"], ["updated_at", "2015-02-20 17:31:03.527340"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:03.563008"], ["updated_at", "2015-02-20 17:31:03.563008"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.1ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:03.573767"], ["updated_at", "2015-02-20 17:31:03.573767"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:03.587075"], ["updated_at", "2015-02-20 17:31:03.587075"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:03.591151"], ["updated_at", "2015-02-20 17:31:03.591151"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:03.597129"], ["updated_at", "2015-02-20 17:31:03.597129"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:03.602165"], ["updated_at", "2015-02-20 17:31:03.602165"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:03.607053"], ["updated_at", "2015-02-20 17:31:03.607053"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:03.613035"], ["updated_at", "2015-02-20 17:31:03.613035"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 9ms (Views: 9.1ms | ActiveRecord: 0.0ms) [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.112868"], ["updated_at", "2015-02-20 17:31:37.112868"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.150543"], ["updated_at", "2015-02-20 17:31:37.150543"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.157891"], ["updated_at", "2015-02-20 17:31:37.157891"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.197879"], ["updated_at", "2015-02-20 17:31:37.197879"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.205428"], ["updated_at", "2015-02-20 17:31:37.205428"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.214964"], ["updated_at", "2015-02-20 17:31:37.214964"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.217641"], ["updated_at", "2015-02-20 17:31:37.217641"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.225553"], ["updated_at", "2015-02-20 17:31:37.225553"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.231465"], ["updated_at", "2015-02-20 17:31:37.231465"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.240156"], ["updated_at", "2015-02-20 17:31:37.240156"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:31:37.249150"], ["updated_at", "2015-02-20 17:31:37.249150"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (636.5ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.570144"], ["updated_at", "2015-02-20 17:40:31.570144"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.601777"], ["updated_at", "2015-02-20 17:40:31.601777"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.610546"], ["updated_at", "2015-02-20 17:40:31.610546"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.641433"], ["updated_at", "2015-02-20 17:40:31.641433"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.647999"], ["updated_at", "2015-02-20 17:40:31.647999"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.714309"], ["updated_at", "2015-02-20 17:40:31.714309"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.721002"], ["updated_at", "2015-02-20 17:40:31.721002"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.726182"], ["updated_at", "2015-02-20 17:40:31.726182"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.734321"], ["updated_at", "2015-02-20 17:40:31.734321"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.741256"], ["updated_at", "2015-02-20 17:40:31.741256"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:40:31.744414"], ["updated_at", "2015-02-20 17:40:31.744414"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.6ms)[0m select sqlite_version(*) [1m[36m (618.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.257326"], ["updated_at", "2015-02-20 17:41:17.257326"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.319629"], ["updated_at", "2015-02-20 17:41:17.319629"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.773602"], ["updated_at", "2015-02-20 17:41:17.773602"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.779959"], ["updated_at", "2015-02-20 17:41:17.779959"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.782715"], ["updated_at", "2015-02-20 17:41:17.782715"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.789028"], ["updated_at", "2015-02-20 17:41:17.789028"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.836789"], ["updated_at", "2015-02-20 17:41:17.836789"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.844092"], ["updated_at", "2015-02-20 17:41:17.844092"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.892119"], ["updated_at", "2015-02-20 17:41:17.892119"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:17.897621"], ["updated_at", "2015-02-20 17:41:17.897621"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (98.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (636.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.5ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 35ms (Views: 12.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.853708"], ["updated_at", "2015-02-20 17:41:47.853708"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.878100"], ["updated_at", "2015-02-20 17:41:47.878100"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.910925"], ["updated_at", "2015-02-20 17:41:47.910925"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.938221"], ["updated_at", "2015-02-20 17:41:47.938221"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.946167"], ["updated_at", "2015-02-20 17:41:47.946167"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.958048"], ["updated_at", "2015-02-20 17:41:47.958048"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.961033"], ["updated_at", "2015-02-20 17:41:47.961033"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.967330"], ["updated_at", "2015-02-20 17:41:47.967330"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.972589"], ["updated_at", "2015-02-20 17:41:47.972589"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.979728"], ["updated_at", "2015-02-20 17:41:47.979728"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:41:47.986013"], ["updated_at", "2015-02-20 17:41:47.986013"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.5ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.665848"], ["updated_at", "2015-02-20 17:42:49.665848"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.700041"], ["updated_at", "2015-02-20 17:42:49.700041"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.709772"], ["updated_at", "2015-02-20 17:42:49.709772"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.743371"], ["updated_at", "2015-02-20 17:42:49.743371"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.749625"], ["updated_at", "2015-02-20 17:42:49.749625"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.819579"], ["updated_at", "2015-02-20 17:42:49.819579"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.827731"], ["updated_at", "2015-02-20 17:42:49.827731"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.836622"], ["updated_at", "2015-02-20 17:42:49.836622"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.841556"], ["updated_at", "2015-02-20 17:42:49.841556"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.849557"], ["updated_at", "2015-02-20 17:42:49.849557"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:49.854881"], ["updated_at", "2015-02-20 17:42:49.854881"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (634.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.179772"], ["updated_at", "2015-02-20 17:42:58.179772"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.218451"], ["updated_at", "2015-02-20 17:42:58.218451"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.228668"], ["updated_at", "2015-02-20 17:42:58.228668"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.268188"], ["updated_at", "2015-02-20 17:42:58.268188"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.277352"], ["updated_at", "2015-02-20 17:42:58.277352"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.289765"], ["updated_at", "2015-02-20 17:42:58.289765"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.297274"], ["updated_at", "2015-02-20 17:42:58.297274"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.305442"], ["updated_at", "2015-02-20 17:42:58.305442"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.309089"], ["updated_at", "2015-02-20 17:42:58.309089"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.314830"], ["updated_at", "2015-02-20 17:42:58.314830"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:42:58.322008"], ["updated_at", "2015-02-20 17:42:58.322008"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.246359"], ["updated_at", "2015-02-20 17:43:05.246359"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.286997"], ["updated_at", "2015-02-20 17:43:05.286997"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.297147"], ["updated_at", "2015-02-20 17:43:05.297147"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.329427"], ["updated_at", "2015-02-20 17:43:05.329427"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.335397"], ["updated_at", "2015-02-20 17:43:05.335397"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.347098"], ["updated_at", "2015-02-20 17:43:05.347098"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.350042"], ["updated_at", "2015-02-20 17:43:05.350042"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.357202"], ["updated_at", "2015-02-20 17:43:05.357202"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.363156"], ["updated_at", "2015-02-20 17:43:05.363156"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.369109"], ["updated_at", "2015-02-20 17:43:05.369109"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:05.375346"], ["updated_at", "2015-02-20 17:43:05.375346"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (101.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (635.4ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.093545"], ["updated_at", "2015-02-20 17:43:25.093545"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.127354"], ["updated_at", "2015-02-20 17:43:25.127354"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.132835"], ["updated_at", "2015-02-20 17:43:25.132835"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.164965"], ["updated_at", "2015-02-20 17:43:25.164965"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.172591"], ["updated_at", "2015-02-20 17:43:25.172591"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.182088"], ["updated_at", "2015-02-20 17:43:25.182088"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.184620"], ["updated_at", "2015-02-20 17:43:25.184620"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.192087"], ["updated_at", "2015-02-20 17:43:25.192087"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.198453"], ["updated_at", "2015-02-20 17:43:25.198453"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.205721"], ["updated_at", "2015-02-20 17:43:25.205721"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:25.211437"], ["updated_at", "2015-02-20 17:43:25.211437"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (628.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.4ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 34ms (Views: 12.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.404228"], ["updated_at", "2015-02-20 17:43:45.404228"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.444339"], ["updated_at", "2015-02-20 17:43:45.444339"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.453748"], ["updated_at", "2015-02-20 17:43:45.453748"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.503964"], ["updated_at", "2015-02-20 17:43:45.503964"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.513435"], ["updated_at", "2015-02-20 17:43:45.513435"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 17:43:45.526497"], ["updated_at", "2015-02-20 17:43:45.526497"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:43:45.530147"], ["updated_at", "2015-02-20 17:43:45.530147"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.6ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:43:45.537652' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.552705"], ["updated_at", "2015-02-20 17:43:45.552705"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.559798"], ["updated_at", "2015-02-20 17:43:45.559798"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.564868"], ["updated_at", "2015-02-20 17:43:45.564868"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.571685"], ["updated_at", "2015-02-20 17:43:45.571685"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.578606"], ["updated_at", "2015-02-20 17:43:45.578606"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:43:45.583583"], ["updated_at", "2015-02-20 17:43:45.583583"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 17:44:14.289380"], ["updated_at", "2015-02-20 17:44:14.289380"]] [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:44:14.295076"], ["updated_at", "2015-02-20 17:44:14.295076"]] [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:44:14.306665' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.339943"], ["updated_at", "2015-02-20 17:44:14.339943"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.348381"], ["updated_at", "2015-02-20 17:44:14.348381"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.824047"], ["updated_at", "2015-02-20 17:44:14.824047"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.852155"], ["updated_at", "2015-02-20 17:44:14.852155"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.860749"], ["updated_at", "2015-02-20 17:44:14.860749"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.924699"], ["updated_at", "2015-02-20 17:44:14.924699"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.931191"], ["updated_at", "2015-02-20 17:44:14.931191"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.934697"], ["updated_at", "2015-02-20 17:44:14.934697"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.943080"], ["updated_at", "2015-02-20 17:44:14.943080"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.949177"], ["updated_at", "2015-02-20 17:44:14.949177"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:14.955841"], ["updated_at", "2015-02-20 17:44:14.955841"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 17:44:24.798838"], ["updated_at", "2015-02-20 17:44:24.798838"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:44:24.806607"], ["updated_at", "2015-02-20 17:44:24.806607"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:44:24.816153' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:24.851088"], ["updated_at", "2015-02-20 17:44:24.851088"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:24.859805"], ["updated_at", "2015-02-20 17:44:24.859805"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:25.400136"], ["updated_at", "2015-02-20 17:44:25.400136"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:25.430007"], ["updated_at", "2015-02-20 17:44:25.430007"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:25.439727"], ["updated_at", "2015-02-20 17:44:25.439727"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:25.461043"], ["updated_at", "2015-02-20 17:44:25.461043"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:25.468596"], ["updated_at", "2015-02-20 17:44:25.468596"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:25.476290"], ["updated_at", "2015-02-20 17:44:25.476290"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:25.479663"], ["updated_at", "2015-02-20 17:44:25.479663"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:25.486736"], ["updated_at", "2015-02-20 17:44:25.486736"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:44:25.491963"], ["updated_at", "2015-02-20 17:44:25.491963"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (18.5ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 17:45:50.616471"], ["updated_at", "2015-02-20 17:45:50.616471"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:45:50.621754"], ["updated_at", "2015-02-20 17:45:50.621754"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:45:50.632878' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:45:50.643509"], ["updated_at", "2015-02-20 17:45:50.643509"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:45:50.646749' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 17:45:50.661325"], ["updated_at", "2015-02-20 17:45:50.661325"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:45:50.663524"], ["updated_at", "2015-02-20 17:45:50.663524"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:45:50.665501' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.142893"], ["updated_at", "2015-02-20 17:45:51.142893"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.166763"], ["updated_at", "2015-02-20 17:45:51.166763"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.175246"], ["updated_at", "2015-02-20 17:45:51.175246"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.203670"], ["updated_at", "2015-02-20 17:45:51.203670"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.211672"], ["updated_at", "2015-02-20 17:45:51.211672"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.276399"], ["updated_at", "2015-02-20 17:45:51.276399"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.281346"], ["updated_at", "2015-02-20 17:45:51.281346"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.283776"], ["updated_at", "2015-02-20 17:45:51.283776"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.291783"], ["updated_at", "2015-02-20 17:45:51.291783"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.298758"], ["updated_at", "2015-02-20 17:45:51.298758"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:45:51.304222"], ["updated_at", "2015-02-20 17:45:51.304222"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 17:47:34.511099"], ["updated_at", "2015-02-20 17:47:34.511099"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:47:34.515894"], ["updated_at", "2015-02-20 17:47:34.515894"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:47:34.525051' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:47:34.535230"], ["updated_at", "2015-02-20 17:47:34.535230"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:47:34.538397' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 17:47:34.557102"], ["updated_at", "2015-02-20 17:47:34.557102"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:47:34.559419"], ["updated_at", "2015-02-20 17:47:34.559419"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:47:34.561574' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 17:47:34.569943"], ["updated_at", "2015-02-20 17:47:34.569943"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:47:34.571870"], ["updated_at", "2015-02-20 17:47:34.571870"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:47:34.574003' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:34.604095"], ["updated_at", "2015-02-20 17:47:34.604095"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:34.612361"], ["updated_at", "2015-02-20 17:47:34.612361"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:35.095470"], ["updated_at", "2015-02-20 17:47:35.095470"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:35.123316"], ["updated_at", "2015-02-20 17:47:35.123316"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:35.131397"], ["updated_at", "2015-02-20 17:47:35.131397"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:35.192906"], ["updated_at", "2015-02-20 17:47:35.192906"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:35.196101"], ["updated_at", "2015-02-20 17:47:35.196101"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:35.201826"], ["updated_at", "2015-02-20 17:47:35.201826"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:35.208397"], ["updated_at", "2015-02-20 17:47:35.208397"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:35.215067"], ["updated_at", "2015-02-20 17:47:35.215067"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:35.222146"], ["updated_at", "2015-02-20 17:47:35.222146"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.126136"], ["updated_at", "2015-02-20 17:47:56.126136"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.178645"], ["updated_at", "2015-02-20 17:47:56.178645"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.184459"], ["updated_at", "2015-02-20 17:47:56.184459"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.220054"], ["updated_at", "2015-02-20 17:47:56.220054"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.226243"], ["updated_at", "2015-02-20 17:47:56.226243"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 17:47:56.237398"], ["updated_at", "2015-02-20 17:47:56.237398"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:47:56.240009"], ["updated_at", "2015-02-20 17:47:56.240009"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:47:56.246667' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:47:56.257847"], ["updated_at", "2015-02-20 17:47:56.257847"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:47:56.260107' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithAddress Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 17:47:56.274500"], ["updated_at", "2015-02-20 17:47:56.274500"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:47:56.276511"], ["updated_at", "2015-02-20 17:47:56.276511"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:47:56.278368' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 17:47:56.286502"], ["updated_at", "2015-02-20 17:47:56.286502"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:47:56.288719"], ["updated_at", "2015-02-20 17:47:56.288719"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:47:56.290735' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 10.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.359362"], ["updated_at", "2015-02-20 17:47:56.359362"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.365134"], ["updated_at", "2015-02-20 17:47:56.365134"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.367959"], ["updated_at", "2015-02-20 17:47:56.367959"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.375357"], ["updated_at", "2015-02-20 17:47:56.375357"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.382007"], ["updated_at", "2015-02-20 17:47:56.382007"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:47:56.387604"], ["updated_at", "2015-02-20 17:47:56.387604"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (633.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 17:48:17.267260"], ["updated_at", "2015-02-20 17:48:17.267260"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:48:17.273246"], ["updated_at", "2015-02-20 17:48:17.273246"]] [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:48:17.282742' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:48:17.292963"], ["updated_at", "2015-02-20 17:48:17.292963"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:48:17.296327' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 17:48:17.315931"], ["updated_at", "2015-02-20 17:48:17.315931"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:48:17.319309"], ["updated_at", "2015-02-20 17:48:17.319309"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:48:17.322222' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 17:48:17.336278"], ["updated_at", "2015-02-20 17:48:17.336278"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:48:17.338350"], ["updated_at", "2015-02-20 17:48:17.338350"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:48:17.341993' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.825259"], ["updated_at", "2015-02-20 17:48:17.825259"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.853509"], ["updated_at", "2015-02-20 17:48:17.853509"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.860810"], ["updated_at", "2015-02-20 17:48:17.860810"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.891505"], ["updated_at", "2015-02-20 17:48:17.891505"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.899428"], ["updated_at", "2015-02-20 17:48:17.899428"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.915217"], ["updated_at", "2015-02-20 17:48:17.915217"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.918303"], ["updated_at", "2015-02-20 17:48:17.918303"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.925604"], ["updated_at", "2015-02-20 17:48:17.925604"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.931357"], ["updated_at", "2015-02-20 17:48:17.931357"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.936473"], ["updated_at", "2015-02-20 17:48:17.936473"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:48:17.945216"], ["updated_at", "2015-02-20 17:48:17.945216"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 13ms (Views: 12.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.250332"], ["updated_at", "2015-02-20 17:59:31.250332"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.741170"], ["updated_at", "2015-02-20 17:59:31.741170"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.746545"], ["updated_at", "2015-02-20 17:59:31.746545"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.753590"], ["updated_at", "2015-02-20 17:59:31.753590"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.758841"], ["updated_at", "2015-02-20 17:59:31.758841"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.761399"], ["updated_at", "2015-02-20 17:59:31.761399"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.866229"], ["updated_at", "2015-02-20 17:59:31.866229"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.872489"], ["updated_at", "2015-02-20 17:59:31.872489"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.906709"], ["updated_at", "2015-02-20 17:59:31.906709"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.913849"], ["updated_at", "2015-02-20 17:59:31.913849"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 17:59:31.964261"], ["updated_at", "2015-02-20 17:59:31.964261"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 17:59:31.974514"], ["updated_at", "2015-02-20 17:59:31.974514"]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:59:31.977177"], ["updated_at", "2015-02-20 17:59:31.977177"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:59:31.982833' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 17:59:32.001598"], ["updated_at", "2015-02-20 17:59:32.001598"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:59:32.003632"], ["updated_at", "2015-02-20 17:59:32.003632"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:59:32.005696' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 17:59:32.014196"], ["updated_at", "2015-02-20 17:59:32.014196"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:59:32.016970"], ["updated_at", "2015-02-20 17:59:32.016970"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 17:59:32.020760' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 17:59:32.031641"], ["updated_at", "2015-02-20 17:59:32.031641"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 17:59:32.039271' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.5ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 37ms (Views: 12.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:00:51.784121"], ["updated_at", "2015-02-20 18:00:51.784121"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:00:51.798310"], ["updated_at", "2015-02-20 18:00:51.798310"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:00:51.805797"], ["updated_at", "2015-02-20 18:00:51.805797"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:00:51.812120"], ["updated_at", "2015-02-20 18:00:51.812120"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:00:51.815038"], ["updated_at", "2015-02-20 18:00:51.815038"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:00:51.821758"], ["updated_at", "2015-02-20 18:00:51.821758"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:00:51.893044"], ["updated_at", "2015-02-20 18:00:51.893044"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:00:51.918250"], ["updated_at", "2015-02-20 18:00:51.918250"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:00:51.945360"], ["updated_at", "2015-02-20 18:00:51.945360"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:00:51.952980"], ["updated_at", "2015-02-20 18:00:51.952980"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:00:51.955382"], ["updated_at", "2015-02-20 18:00:51.955382"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:00:51.961825' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:00:51.976112"], ["updated_at", "2015-02-20 18:00:51.976112"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:00:51.978516"], ["updated_at", "2015-02-20 18:00:51.978516"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:00:51.981033' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:00:51.993485"], ["updated_at", "2015-02-20 18:00:51.993485"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:00:51.995873"], ["updated_at", "2015-02-20 18:00:51.995873"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:00:51.998337' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:00:52.003662"], ["updated_at", "2015-02-20 18:00:52.003662"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:00:52.006266' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (98.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (631.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:01.691542"], ["updated_at", "2015-02-20 18:01:01.691542"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:01.748299"], ["updated_at", "2015-02-20 18:01:01.748299"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:01.751025"], ["updated_at", "2015-02-20 18:01:01.751025"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:02.175354"], ["updated_at", "2015-02-20 18:01:02.175354"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:02.179716"], ["updated_at", "2015-02-20 18:01:02.179716"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:02.187021"], ["updated_at", "2015-02-20 18:01:02.187021"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:02.237933"], ["updated_at", "2015-02-20 18:01:02.237933"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:02.262126"], ["updated_at", "2015-02-20 18:01:02.262126"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:02.304140"], ["updated_at", "2015-02-20 18:01:02.304140"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:01:02.312088"], ["updated_at", "2015-02-20 18:01:02.312088"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:01:02.314348"], ["updated_at", "2015-02-20 18:01:02.314348"]] [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:01:02.321924' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:01:02.339633"], ["updated_at", "2015-02-20 18:01:02.339633"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:01:02.342210"], ["updated_at", "2015-02-20 18:01:02.342210"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:01:02.345069' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:01:02.350288"], ["updated_at", "2015-02-20 18:01:02.350288"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:01:02.352562' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:01:02.364228"], ["updated_at", "2015-02-20 18:01:02.364228"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:01:02.366184"], ["updated_at", "2015-02-20 18:01:02.366184"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:01:02.368247' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (98.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (633.4ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:14.631333"], ["updated_at", "2015-02-20 18:01:14.631333"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:14.686008"], ["updated_at", "2015-02-20 18:01:14.686008"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:15.145096"], ["updated_at", "2015-02-20 18:01:15.145096"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:15.155749"], ["updated_at", "2015-02-20 18:01:15.155749"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:15.161081"], ["updated_at", "2015-02-20 18:01:15.161081"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:15.166218"], ["updated_at", "2015-02-20 18:01:15.166218"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:01:15.217289"], ["updated_at", "2015-02-20 18:01:15.217289"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:01:15.219466"], ["updated_at", "2015-02-20 18:01:15.219466"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:01:15.224729' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:01:15.240253"], ["updated_at", "2015-02-20 18:01:15.240253"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:01:15.242108"], ["updated_at", "2015-02-20 18:01:15.242108"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:01:15.246123' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:01:15.251051"], ["updated_at", "2015-02-20 18:01:15.251051"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:01:15.253154' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:01:15.268789"], ["updated_at", "2015-02-20 18:01:15.268789"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:01:15.271191"], ["updated_at", "2015-02-20 18:01:15.271191"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:01:15.273463' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:15.297775"], ["updated_at", "2015-02-20 18:01:15.297775"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:15.323511"], ["updated_at", "2015-02-20 18:01:15.323511"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:15.331170"], ["updated_at", "2015-02-20 18:01:15.331170"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:15.357032"], ["updated_at", "2015-02-20 18:01:15.357032"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:01:15.363930"], ["updated_at", "2015-02-20 18:01:15.363930"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (632.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:07:48.077858"], ["updated_at", "2015-02-20 18:07:48.077858"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:07:48.086459"], ["updated_at", "2015-02-20 18:07:48.086459"]] [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:07:48.098478' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:07:48.111019"], ["updated_at", "2015-02-20 18:07:48.111019"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:07:48.116294' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:07:48.141642"], ["updated_at", "2015-02-20 18:07:48.141642"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:07:48.145084"], ["updated_at", "2015-02-20 18:07:48.145084"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:07:48.148482' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:07:48.168127"], ["updated_at", "2015-02-20 18:07:48.168127"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:07:48.172821"], ["updated_at", "2015-02-20 18:07:48.172821"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:07:48.175743' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.692208"], ["updated_at", "2015-02-20 18:07:48.692208"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.716364"], ["updated_at", "2015-02-20 18:07:48.716364"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.725777"], ["updated_at", "2015-02-20 18:07:48.725777"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.756917"], ["updated_at", "2015-02-20 18:07:48.756917"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.763408"], ["updated_at", "2015-02-20 18:07:48.763408"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.776210"], ["updated_at", "2015-02-20 18:07:48.776210"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.781651"], ["updated_at", "2015-02-20 18:07:48.781651"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.784452"], ["updated_at", "2015-02-20 18:07:48.784452"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.792858"], ["updated_at", "2015-02-20 18:07:48.792858"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.798233"], ["updated_at", "2015-02-20 18:07:48.798233"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:07:48.803821"], ["updated_at", "2015-02-20 18:07:48.803821"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 10ms (Views: 10.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (5.5ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (632.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:09:05.076332"], ["updated_at", "2015-02-20 18:09:05.076332"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:09:05.081969"], ["updated_at", "2015-02-20 18:09:05.081969"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.091185' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:09:05.101199"], ["updated_at", "2015-02-20 18:09:05.101199"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.105278' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:09:05.120746"], ["updated_at", "2015-02-20 18:09:05.120746"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:09:05.122978"], ["updated_at", "2015-02-20 18:09:05.122978"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.125367' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:09:05.134405"], ["updated_at", "2015-02-20 18:09:05.134405"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:09:05.136505"], ["updated_at", "2015-02-20 18:09:05.136505"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.138621' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.592706"], ["updated_at", "2015-02-20 18:09:05.592706"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.616135"], ["updated_at", "2015-02-20 18:09:05.616135"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.622948"], ["updated_at", "2015-02-20 18:09:05.622948"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.650932"], ["updated_at", "2015-02-20 18:09:05.650932"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.657860"], ["updated_at", "2015-02-20 18:09:05.657860"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:09:05.687098"], ["updated_at", "2015-02-20 18:09:05.687098"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:09:05.689106"], ["updated_at", "2015-02-20 18:09:05.689106"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.691522' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:09:05.710123"], ["updated_at", "2015-02-20 18:09:05.710123"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123411 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:09:05.712306"], ["updated_at", "2015-02-20 18:09:05.712306"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.714378' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:09:05.723793"], ["updated_at", "2015-02-20 18:09:05.723793"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123412 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:09:05.726198"], ["updated_at", "2015-02-20 18:09:05.726198"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.728162' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.799822"], ["updated_at", "2015-02-20 18:09:05.799822"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.804628"], ["updated_at", "2015-02-20 18:09:05.804628"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.809683"], ["updated_at", "2015-02-20 18:09:05.809683"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123417 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.815405"], ["updated_at", "2015-02-20 18:09:05.815405"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123417 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.817945"], ["updated_at", "2015-02-20 18:09:05.817945"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123418 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:09:05.826826"], ["updated_at", "2015-02-20 18:09:05.826826"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (101.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (635.6ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.060796"], ["updated_at", "2015-02-20 18:10:37.060796"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.552860"], ["updated_at", "2015-02-20 18:10:37.552860"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.559245"], ["updated_at", "2015-02-20 18:10:37.559245"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.564776"], ["updated_at", "2015-02-20 18:10:37.564776"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.569727"], ["updated_at", "2015-02-20 18:10:37.569727"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.572160"], ["updated_at", "2015-02-20 18:10:37.572160"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:10:37.687304"], ["updated_at", "2015-02-20 18:10:37.687304"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12346 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:10:37.690510"], ["updated_at", "2015-02-20 18:10:37.690510"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.696140' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:10:37.717631"], ["updated_at", "2015-02-20 18:10:37.717631"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12348 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:10:37.720312"], ["updated_at", "2015-02-20 18:10:37.720312"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.722974' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:10:37.733991"], ["updated_at", "2015-02-20 18:10:37.733991"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:10:37.737508"], ["updated_at", "2015-02-20 18:10:37.737508"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.740052' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.772414"], ["updated_at", "2015-02-20 18:10:37.772414"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.778707"], ["updated_at", "2015-02-20 18:10:37.778707"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.828946"], ["updated_at", "2015-02-20 18:10:37.828946"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.869607"], ["updated_at", "2015-02-20 18:10:37.869607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:10:37.878352"], ["updated_at", "2015-02-20 18:10:37.878352"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:10:37.890556"], ["updated_at", "2015-02-20 18:10:37.890556"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:10:37.892830"], ["updated_at", "2015-02-20 18:10:37.892830"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.895343' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:10:37.908571"], ["updated_at", "2015-02-20 18:10:37.908571"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:10:37.911462"], ["updated_at", "2015-02-20 18:10:37.911462"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.914002' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:10:37.924466"], ["updated_at", "2015-02-20 18:10:37.924466"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123417 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:10:37.927414"], ["updated_at", "2015-02-20 18:10:37.927414"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.930461' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123418 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:10:37.936491"], ["updated_at", "2015-02-20 18:10:37.936491"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.940106' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (225.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 37ms (Views: 12.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.126175"], ["updated_at", "2015-02-20 18:12:11.126175"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.140920"], ["updated_at", "2015-02-20 18:12:11.140920"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.176026"], ["updated_at", "2015-02-20 18:12:11.176026"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.202909"], ["updated_at", "2015-02-20 18:12:11.202909"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.210069"], ["updated_at", "2015-02-20 18:12:11.210069"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:12:11.223452"], ["updated_at", "2015-02-20 18:12:11.223452"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:12:11.226140"], ["updated_at", "2015-02-20 18:12:11.226140"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.232192' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:12:11.245369"], ["updated_at", "2015-02-20 18:12:11.245369"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:12:11.247779"], ["updated_at", "2015-02-20 18:12:11.247779"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.251334' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:12:11.257757"], ["updated_at", "2015-02-20 18:12:11.257757"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.260330' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:12:11.275037"], ["updated_at", "2015-02-20 18:12:11.275037"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:12:11.277533"], ["updated_at", "2015-02-20 18:12:11.277533"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.279773' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:12:11.324902"], ["updated_at", "2015-02-20 18:12:11.324902"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:12:11.327357"], ["updated_at", "2015-02-20 18:12:11.327357"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.329634' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:12:11.344478"], ["updated_at", "2015-02-20 18:12:11.344478"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123411 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:12:11.346624"], ["updated_at", "2015-02-20 18:12:11.346624"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.348889' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.356179"], ["updated_at", "2015-02-20 18:12:11.356179"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.361529"], ["updated_at", "2015-02-20 18:12:11.361529"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.367495"], ["updated_at", "2015-02-20 18:12:11.367495"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.370365"], ["updated_at", "2015-02-20 18:12:11.370365"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.376720"], ["updated_at", "2015-02-20 18:12:11.376720"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:12:11.383020"], ["updated_at", "2015-02-20 18:12:11.383020"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.7ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:42.406072"], ["updated_at", "2015-02-20 18:13:42.406072"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:42.475468"], ["updated_at", "2015-02-20 18:13:42.475468"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:42.481787"], ["updated_at", "2015-02-20 18:13:42.481787"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:42.933262"], ["updated_at", "2015-02-20 18:13:42.933262"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:42.935904"], ["updated_at", "2015-02-20 18:13:42.935904"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:42.942363"], ["updated_at", "2015-02-20 18:13:42.942363"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:13:43.000997"], ["updated_at", "2015-02-20 18:13:43.000997"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12346 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:13:43.003625"], ["updated_at", "2015-02-20 18:13:43.003625"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.009563' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:13:43.027271"], ["updated_at", "2015-02-20 18:13:43.027271"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12347 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:13:43.029920"], ["updated_at", "2015-02-20 18:13:43.029920"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.032216' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:13:43.066862"], ["updated_at", "2015-02-20 18:13:43.066862"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:13:43.071067"], ["updated_at", "2015-02-20 18:13:43.071067"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.074186' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:13:43.089532"], ["updated_at", "2015-02-20 18:13:43.089532"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:13:43.091479"], ["updated_at", "2015-02-20 18:13:43.091479"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.093277' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:13:43.098464"], ["updated_at", "2015-02-20 18:13:43.098464"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.100783' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:13:43.113251"], ["updated_at", "2015-02-20 18:13:43.113251"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:13:43.115119"], ["updated_at", "2015-02-20 18:13:43.115119"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.116904' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:43.149931"], ["updated_at", "2015-02-20 18:13:43.149931"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:43.158301"], ["updated_at", "2015-02-20 18:13:43.158301"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:43.186982"], ["updated_at", "2015-02-20 18:13:43.186982"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:43.231969"], ["updated_at", "2015-02-20 18:13:43.231969"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:13:43.237316"], ["updated_at", "2015-02-20 18:13:43.237316"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:14:18.099746"], ["updated_at", "2015-02-20 18:14:18.099746"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:14:18.104715"], ["updated_at", "2015-02-20 18:14:18.104715"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.113250' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:14:18.123359"], ["updated_at", "2015-02-20 18:14:18.123359"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.128014' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:14:18.142261"], ["updated_at", "2015-02-20 18:14:18.142261"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:14:18.144226"], ["updated_at", "2015-02-20 18:14:18.144226"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.146062' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:14:18.155337"], ["updated_at", "2015-02-20 18:14:18.155337"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:14:18.157236"], ["updated_at", "2015-02-20 18:14:18.157236"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.159341' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.653664"], ["updated_at", "2015-02-20 18:14:18.653664"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.682276"], ["updated_at", "2015-02-20 18:14:18.682276"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.691649"], ["updated_at", "2015-02-20 18:14:18.691649"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.722912"], ["updated_at", "2015-02-20 18:14:18.722912"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.729834"], ["updated_at", "2015-02-20 18:14:18.729834"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:14:18.763248"], ["updated_at", "2015-02-20 18:14:18.763248"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:14:18.765311"], ["updated_at", "2015-02-20 18:14:18.765311"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.767595' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:14:18.782272"], ["updated_at", "2015-02-20 18:14:18.782272"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123411 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:14:18.784157"], ["updated_at", "2015-02-20 18:14:18.784157"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.787107' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 23ms (Views: 22.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.858937"], ["updated_at", "2015-02-20 18:14:18.858937"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.865034"], ["updated_at", "2015-02-20 18:14:18.865034"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.871574"], ["updated_at", "2015-02-20 18:14:18.871574"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.878152"], ["updated_at", "2015-02-20 18:14:18.878152"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.881015"], ["updated_at", "2015-02-20 18:14:18.881015"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:14:18.886725"], ["updated_at", "2015-02-20 18:14:18.886725"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.074929"], ["updated_at", "2015-02-20 18:15:22.074929"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.136352"], ["updated_at", "2015-02-20 18:15:22.136352"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.573035"], ["updated_at", "2015-02-20 18:15:22.573035"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.579768"], ["updated_at", "2015-02-20 18:15:22.579768"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.585957"], ["updated_at", "2015-02-20 18:15:22.585957"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.588889"], ["updated_at", "2015-02-20 18:15:22.588889"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:15:22.690789"], ["updated_at", "2015-02-20 18:15:22.690789"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12346 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:15:22.693268"], ["updated_at", "2015-02-20 18:15:22.693268"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.699430' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:15:22.717369"], ["updated_at", "2015-02-20 18:15:22.717369"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12347 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:15:22.720009"], ["updated_at", "2015-02-20 18:15:22.720009"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.722163' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.754134"], ["updated_at", "2015-02-20 18:15:22.754134"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.760798"], ["updated_at", "2015-02-20 18:15:22.760798"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.806563"], ["updated_at", "2015-02-20 18:15:22.806563"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.812331"], ["updated_at", "2015-02-20 18:15:22.812331"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:15:22.840108"], ["updated_at", "2015-02-20 18:15:22.840108"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:15:22.861086"], ["updated_at", "2015-02-20 18:15:22.861086"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:15:22.863377"], ["updated_at", "2015-02-20 18:15:22.863377"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.866321' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:15:22.878610"], ["updated_at", "2015-02-20 18:15:22.878610"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:15:22.881520"], ["updated_at", "2015-02-20 18:15:22.881520"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.884263' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:15:22.895168"], ["updated_at", "2015-02-20 18:15:22.895168"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:15:22.897582"], ["updated_at", "2015-02-20 18:15:22.897582"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.900266' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:15:22.906158"], ["updated_at", "2015-02-20 18:15:22.906158"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.908597' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (635.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:16:35.610885"], ["updated_at", "2015-02-20 18:16:35.610885"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:16:35.615933"], ["updated_at", "2015-02-20 18:16:35.615933"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.627381' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:16:35.637173"], ["updated_at", "2015-02-20 18:16:35.637173"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.640500' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:16:35.656914"], ["updated_at", "2015-02-20 18:16:35.656914"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:16:35.659280"], ["updated_at", "2015-02-20 18:16:35.659280"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.661744' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:16:35.674770"], ["updated_at", "2015-02-20 18:16:35.674770"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:16:35.676715"], ["updated_at", "2015-02-20 18:16:35.676715"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.678688' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:16:35.708192"], ["updated_at", "2015-02-20 18:16:35.708192"]] [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12346 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:16:35.712198"], ["updated_at", "2015-02-20 18:16:35.712198"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.716270' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:16:35.726212"], ["updated_at", "2015-02-20 18:16:35.726212"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12347 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:16:35.728254"], ["updated_at", "2015-02-20 18:16:35.728254"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.730369' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.184971"], ["updated_at", "2015-02-20 18:16:36.184971"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.213222"], ["updated_at", "2015-02-20 18:16:36.213222"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.220320"], ["updated_at", "2015-02-20 18:16:36.220320"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.253556"], ["updated_at", "2015-02-20 18:16:36.253556"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.259721"], ["updated_at", "2015-02-20 18:16:36.259721"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.267401"], ["updated_at", "2015-02-20 18:16:36.267401"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.271170"], ["updated_at", "2015-02-20 18:16:36.271170"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.277158"], ["updated_at", "2015-02-20 18:16:36.277158"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.282485"], ["updated_at", "2015-02-20 18:16:36.282485"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.297979"], ["updated_at", "2015-02-20 18:16:36.297979"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:16:36.305976"], ["updated_at", "2015-02-20 18:16:36.305976"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:52.466313"], ["updated_at", "2015-02-20 18:17:52.466313"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:52.536512"], ["updated_at", "2015-02-20 18:17:52.536512"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:52.998725"], ["updated_at", "2015-02-20 18:17:52.998725"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:53.005765"], ["updated_at", "2015-02-20 18:17:53.005765"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:53.012019"], ["updated_at", "2015-02-20 18:17:53.012019"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:53.014829"], ["updated_at", "2015-02-20 18:17:53.014829"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:17:53.125163"], ["updated_at", "2015-02-20 18:17:53.125163"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12346 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:17:53.127840"], ["updated_at", "2015-02-20 18:17:53.127840"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.133185' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:17:53.148517"], ["updated_at", "2015-02-20 18:17:53.148517"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12347 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:17:53.150448"], ["updated_at", "2015-02-20 18:17:53.150448"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.152715' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUserWithSingularAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mEffective::Address Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:53.205669"], ["updated_at", "2015-02-20 18:17:53.205669"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:53.213486"], ["updated_at", "2015-02-20 18:17:53.213486"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:53.242399"], ["updated_at", "2015-02-20 18:17:53.242399"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:53.247669"], ["updated_at", "2015-02-20 18:17:53.247669"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:17:53.275711"], ["updated_at", "2015-02-20 18:17:53.275711"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:17:53.295995"], ["updated_at", "2015-02-20 18:17:53.295995"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:17:53.297923"], ["updated_at", "2015-02-20 18:17:53.297923"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.299859' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:17:53.313944"], ["updated_at", "2015-02-20 18:17:53.313944"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:17:53.316438"], ["updated_at", "2015-02-20 18:17:53.316438"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.318931' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:17:53.328667"], ["updated_at", "2015-02-20 18:17:53.328667"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:17:53.330652"], ["updated_at", "2015-02-20 18:17:53.330652"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.333026' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:17:53.338083"], ["updated_at", "2015-02-20 18:17:53.338083"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.340288' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.0ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 36ms (Views: 11.4ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:02.763468"], ["updated_at", "2015-02-20 18:18:02.763468"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:02.800695"], ["updated_at", "2015-02-20 18:18:02.800695"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:02.806942"], ["updated_at", "2015-02-20 18:18:02.806942"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:02.839141"], ["updated_at", "2015-02-20 18:18:02.839141"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:02.844488"], ["updated_at", "2015-02-20 18:18:02.844488"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:18:02.860669"], ["updated_at", "2015-02-20 18:18:02.860669"]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:18:02.864581"], ["updated_at", "2015-02-20 18:18:02.864581"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.871986' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:18:02.885011"], ["updated_at", "2015-02-20 18:18:02.885011"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:18:02.888277"], ["updated_at", "2015-02-20 18:18:02.888277"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.892892' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:18:02.899258"], ["updated_at", "2015-02-20 18:18:02.899258"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.901533' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:18:02.914688"], ["updated_at", "2015-02-20 18:18:02.914688"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:18:02.916631"], ["updated_at", "2015-02-20 18:18:02.916631"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.919498' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:18:02.962695"], ["updated_at", "2015-02-20 18:18:02.962695"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:18:02.965073"], ["updated_at", "2015-02-20 18:18:02.965073"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.967952' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:18:02.980886"], ["updated_at", "2015-02-20 18:18:02.980886"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123410 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:18:02.983061"], ["updated_at", "2015-02-20 18:18:02.983061"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.986145' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mUserWithSingularAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:03.000157"], ["updated_at", "2015-02-20 18:18:03.000157"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:03.004605"], ["updated_at", "2015-02-20 18:18:03.004605"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:03.011260"], ["updated_at", "2015-02-20 18:18:03.011260"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:03.016419"], ["updated_at", "2015-02-20 18:18:03.016419"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:03.023508"], ["updated_at", "2015-02-20 18:18:03.023508"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:18:03.029001"], ["updated_at", "2015-02-20 18:18:03.029001"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.0ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (635.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:19:28.265429"], ["updated_at", "2015-02-20 18:19:28.265429"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:19:28.271126"], ["updated_at", "2015-02-20 18:19:28.271126"]] [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.281351' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:19:28.291978"], ["updated_at", "2015-02-20 18:19:28.291978"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.295418' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:19:28.311121"], ["updated_at", "2015-02-20 18:19:28.311121"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:19:28.313640"], ["updated_at", "2015-02-20 18:19:28.313640"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.316840' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:19:28.326841"], ["updated_at", "2015-02-20 18:19:28.326841"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:19:28.329025"], ["updated_at", "2015-02-20 18:19:28.329025"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.331486' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.780921"], ["updated_at", "2015-02-20 18:19:28.780921"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.810486"], ["updated_at", "2015-02-20 18:19:28.810486"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.818031"], ["updated_at", "2015-02-20 18:19:28.818031"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.848274"], ["updated_at", "2015-02-20 18:19:28.848274"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.854421"], ["updated_at", "2015-02-20 18:19:28.854421"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:19:28.882012"], ["updated_at", "2015-02-20 18:19:28.882012"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:19:28.884385"], ["updated_at", "2015-02-20 18:19:28.884385"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.886879' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:19:28.896680"], ["updated_at", "2015-02-20 18:19:28.896680"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123410 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:19:28.899292"], ["updated_at", "2015-02-20 18:19:28.899292"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.901346' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mUserWithSingularAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.973584"], ["updated_at", "2015-02-20 18:19:28.973584"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.979856"], ["updated_at", "2015-02-20 18:19:28.979856"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.982865"], ["updated_at", "2015-02-20 18:19:28.982865"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.990055"], ["updated_at", "2015-02-20 18:19:28.990055"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:28.995091"], ["updated_at", "2015-02-20 18:19:28.995091"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:19:29.000703"], ["updated_at", "2015-02-20 18:19:29.000703"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 36ms (Views: 14.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.526435"], ["updated_at", "2015-02-20 18:20:21.526435"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.542913"], ["updated_at", "2015-02-20 18:20:21.542913"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.546608"], ["updated_at", "2015-02-20 18:20:21.546608"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.553674"], ["updated_at", "2015-02-20 18:20:21.553674"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.559129"], ["updated_at", "2015-02-20 18:20:21.559129"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.564291"], ["updated_at", "2015-02-20 18:20:21.564291"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.634137"], ["updated_at", "2015-02-20 18:20:21.634137"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.640275"], ["updated_at", "2015-02-20 18:20:21.640275"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.668395"], ["updated_at", "2015-02-20 18:20:21.668395"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.704227"], ["updated_at", "2015-02-20 18:20:21.704227"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:20:21.711917"], ["updated_at", "2015-02-20 18:20:21.711917"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:20:21.746296"], ["updated_at", "2015-02-20 18:20:21.746296"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:20:21.748568"], ["updated_at", "2015-02-20 18:20:21.748568"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.754440' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:20:21.768991"], ["updated_at", "2015-02-20 18:20:21.768991"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123410 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:20:21.771016"], ["updated_at", "2015-02-20 18:20:21.771016"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.773270' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mUserWithSingularAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:20:21.805610"], ["updated_at", "2015-02-20 18:20:21.805610"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:20:21.807781"], ["updated_at", "2015-02-20 18:20:21.807781"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.810225' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:20:21.819328"], ["updated_at", "2015-02-20 18:20:21.819328"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:20:21.821740"], ["updated_at", "2015-02-20 18:20:21.821740"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.823770' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:20:21.839592"], ["updated_at", "2015-02-20 18:20:21.839592"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:20:21.843748"], ["updated_at", "2015-02-20 18:20:21.843748"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.848165' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:20:21.853971"], ["updated_at", "2015-02-20 18:20:21.853971"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.856817' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.0ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 32ms (Views: 11.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.381371"], ["updated_at", "2015-02-20 18:21:21.381371"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.395200"], ["updated_at", "2015-02-20 18:21:21.395200"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.401360"], ["updated_at", "2015-02-20 18:21:21.401360"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.406387"], ["updated_at", "2015-02-20 18:21:21.406387"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.411952"], ["updated_at", "2015-02-20 18:21:21.411952"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.414318"], ["updated_at", "2015-02-20 18:21:21.414318"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.472589"], ["updated_at", "2015-02-20 18:21:21.472589"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.480647"], ["updated_at", "2015-02-20 18:21:21.480647"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.536784"], ["updated_at", "2015-02-20 18:21:21.536784"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.542021"], ["updated_at", "2015-02-20 18:21:21.542021"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:21:21.569717"], ["updated_at", "2015-02-20 18:21:21.569717"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:21:21.597214"], ["updated_at", "2015-02-20 18:21:21.597214"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:21:21.599599"], ["updated_at", "2015-02-20 18:21:21.599599"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.605080' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:21:21.619105"], ["updated_at", "2015-02-20 18:21:21.619105"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123410 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:21:21.621047"], ["updated_at", "2015-02-20 18:21:21.621047"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.634698' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mUserWithSingularAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mEffective::Address Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:21:21.652304"], ["updated_at", "2015-02-20 18:21:21.652304"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:21:21.655527"], ["updated_at", "2015-02-20 18:21:21.655527"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.658798' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:21:21.667436"], ["updated_at", "2015-02-20 18:21:21.667436"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:21:21.669562"], ["updated_at", "2015-02-20 18:21:21.669562"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.672400' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:21:21.686240"], ["updated_at", "2015-02-20 18:21:21.686240"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:21:21.688288"], ["updated_at", "2015-02-20 18:21:21.688288"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.690084' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:21:21.695444"], ["updated_at", "2015-02-20 18:21:21.695444"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.697855' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:22:11.882625"], ["updated_at", "2015-02-20 18:22:11.882625"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:22:11.887899"], ["updated_at", "2015-02-20 18:22:11.887899"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:22:11.897843' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:22:11.907187"], ["updated_at", "2015-02-20 18:22:11.907187"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:22:11.910663' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:22:11.926141"], ["updated_at", "2015-02-20 18:22:11.926141"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:22:11.928077"], ["updated_at", "2015-02-20 18:22:11.928077"]] [1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:22:11.930982' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:22:11.940847"], ["updated_at", "2015-02-20 18:22:11.940847"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:22:11.943053"], ["updated_at", "2015-02-20 18:22:11.943053"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:22:11.945456' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.406384"], ["updated_at", "2015-02-20 18:22:12.406384"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.435448"], ["updated_at", "2015-02-20 18:22:12.435448"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.443081"], ["updated_at", "2015-02-20 18:22:12.443081"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.474706"], ["updated_at", "2015-02-20 18:22:12.474706"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.485266"], ["updated_at", "2015-02-20 18:22:12.485266"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:22:12.522668"], ["updated_at", "2015-02-20 18:22:12.522668"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:22:12.525388"], ["updated_at", "2015-02-20 18:22:12.525388"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:22:12.528123' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUserWithSingularAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mEffective::Address Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:22:12.548639"], ["updated_at", "2015-02-20 18:22:12.548639"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123411 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:22:12.550937"], ["updated_at", "2015-02-20 18:22:12.550937"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:22:12.553407' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 36ms (Views: 34.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.7ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.646665"], ["updated_at", "2015-02-20 18:22:12.646665"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.651650"], ["updated_at", "2015-02-20 18:22:12.651650"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.660741"], ["updated_at", "2015-02-20 18:22:12.660741"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.667629"], ["updated_at", "2015-02-20 18:22:12.667629"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.676322"], ["updated_at", "2015-02-20 18:22:12.676322"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:22:12.682409"], ["updated_at", "2015-02-20 18:22:12.682409"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (2.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.7ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:23:31.732403"], ["updated_at", "2015-02-20 18:23:31.732403"]] [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:23:31.737950"], ["updated_at", "2015-02-20 18:23:31.737950"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.748927' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:23:31.758530"], ["updated_at", "2015-02-20 18:23:31.758530"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.761891' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:23:31.780759"], ["updated_at", "2015-02-20 18:23:31.780759"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:23:31.782770"], ["updated_at", "2015-02-20 18:23:31.782770"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.785173' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:23:31.797299"], ["updated_at", "2015-02-20 18:23:31.797299"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:23:31.799265"], ["updated_at", "2015-02-20 18:23:31.799265"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.801105' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:23:31.828450"], ["updated_at", "2015-02-20 18:23:31.828450"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12346 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:23:31.831391"], ["updated_at", "2015-02-20 18:23:31.831391"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.834953' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:23:31.844009"], ["updated_at", "2015-02-20 18:23:31.844009"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12347 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:23:31.846045"], ["updated_at", "2015-02-20 18:23:31.846045"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.848158' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUserWithSingularAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mEffective::Address Load (0.1ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.328529"], ["updated_at", "2015-02-20 18:23:32.328529"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.358416"], ["updated_at", "2015-02-20 18:23:32.358416"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.364888"], ["updated_at", "2015-02-20 18:23:32.364888"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.397424"], ["updated_at", "2015-02-20 18:23:32.397424"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.403139"], ["updated_at", "2015-02-20 18:23:32.403139"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.411225"], ["updated_at", "2015-02-20 18:23:32.411225"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.416688"], ["updated_at", "2015-02-20 18:23:32.416688"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.419714"], ["updated_at", "2015-02-20 18:23:32.419714"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.7ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.443656"], ["updated_at", "2015-02-20 18:23:32.443656"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.453073"], ["updated_at", "2015-02-20 18:23:32.453073"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:23:32.460561"], ["updated_at", "2015-02-20 18:23:32.460561"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.7ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.3ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 29ms (Views: 9.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:53.966990"], ["updated_at", "2015-02-20 18:24:53.966990"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:53.985421"], ["updated_at", "2015-02-20 18:24:53.985421"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:53.991421"], ["updated_at", "2015-02-20 18:24:53.991421"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:53.996273"], ["updated_at", "2015-02-20 18:24:53.996273"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:54.001508"], ["updated_at", "2015-02-20 18:24:54.001508"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:54.003984"], ["updated_at", "2015-02-20 18:24:54.003984"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:54.058578"], ["updated_at", "2015-02-20 18:24:54.058578"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:54.065408"], ["updated_at", "2015-02-20 18:24:54.065408"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:54.116416"], ["updated_at", "2015-02-20 18:24:54.116416"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:54.121848"], ["updated_at", "2015-02-20 18:24:54.121848"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:24:54.146904"], ["updated_at", "2015-02-20 18:24:54.146904"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:24:54.173258"], ["updated_at", "2015-02-20 18:24:54.173258"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:24:54.175468"], ["updated_at", "2015-02-20 18:24:54.175468"]] [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.182285' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:24:54.202530"], ["updated_at", "2015-02-20 18:24:54.202530"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123410 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:24:54.206752"], ["updated_at", "2015-02-20 18:24:54.206752"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.209131' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:24:54.234680"], ["updated_at", "2015-02-20 18:24:54.234680"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:24:54.238061"], ["updated_at", "2015-02-20 18:24:54.238061"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.241085' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:24:54.249977"], ["updated_at", "2015-02-20 18:24:54.249977"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:24:54.252343"], ["updated_at", "2015-02-20 18:24:54.252343"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.254535' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:24:54.267359"], ["updated_at", "2015-02-20 18:24:54.267359"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:24:54.269671"], ["updated_at", "2015-02-20 18:24:54.269671"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.271806' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:24:54.280483"], ["updated_at", "2015-02-20 18:24:54.280483"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.287816' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.3ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:25:01.049873"], ["updated_at", "2015-02-20 18:25:01.049873"]] [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:25:01.057838"], ["updated_at", "2015-02-20 18:25:01.057838"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.069729' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:25:01.081968"], ["updated_at", "2015-02-20 18:25:01.081968"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.085639' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:25:01.100891"], ["updated_at", "2015-02-20 18:25:01.100891"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:25:01.103050"], ["updated_at", "2015-02-20 18:25:01.103050"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.105152' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:25:01.118826"], ["updated_at", "2015-02-20 18:25:01.118826"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:25:01.121007"], ["updated_at", "2015-02-20 18:25:01.121007"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.123423' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:25:01.153350"], ["updated_at", "2015-02-20 18:25:01.153350"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12346 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:25:01.155794"], ["updated_at", "2015-02-20 18:25:01.155794"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.158363' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:25:01.168915"], ["updated_at", "2015-02-20 18:25:01.168915"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12347 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:25:01.171677"], ["updated_at", "2015-02-20 18:25:01.171677"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.174382' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.623336"], ["updated_at", "2015-02-20 18:25:01.623336"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.647934"], ["updated_at", "2015-02-20 18:25:01.647934"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.656532"], ["updated_at", "2015-02-20 18:25:01.656532"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.685656"], ["updated_at", "2015-02-20 18:25:01.685656"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.693288"], ["updated_at", "2015-02-20 18:25:01.693288"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.710191"], ["updated_at", "2015-02-20 18:25:01.710191"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.715223"], ["updated_at", "2015-02-20 18:25:01.715223"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.717644"], ["updated_at", "2015-02-20 18:25:01.717644"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.723140"], ["updated_at", "2015-02-20 18:25:01.723140"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.738985"], ["updated_at", "2015-02-20 18:25:01.738985"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:01.745041"], ["updated_at", "2015-02-20 18:25:01.745041"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (635.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 32ms (Views: 10.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.265627"], ["updated_at", "2015-02-20 18:25:39.265627"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.280026"], ["updated_at", "2015-02-20 18:25:39.280026"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.286987"], ["updated_at", "2015-02-20 18:25:39.286987"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.289814"], ["updated_at", "2015-02-20 18:25:39.289814"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.296288"], ["updated_at", "2015-02-20 18:25:39.296288"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.301428"], ["updated_at", "2015-02-20 18:25:39.301428"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.371276"], ["updated_at", "2015-02-20 18:25:39.371276"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.377571"], ["updated_at", "2015-02-20 18:25:39.377571"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.406005"], ["updated_at", "2015-02-20 18:25:39.406005"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.411551"], ["updated_at", "2015-02-20 18:25:39.411551"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:25:39.437242"], ["updated_at", "2015-02-20 18:25:39.437242"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:25:39.465144"], ["updated_at", "2015-02-20 18:25:39.465144"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:25:39.467616"], ["updated_at", "2015-02-20 18:25:39.467616"]] [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.474396' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:25:39.492434"], ["updated_at", "2015-02-20 18:25:39.492434"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123410 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:25:39.494636"], ["updated_at", "2015-02-20 18:25:39.494636"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.497302' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:25:39.506458"], ["updated_at", "2015-02-20 18:25:39.506458"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:25:39.519512"], ["updated_at", "2015-02-20 18:25:39.519512"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.522322' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:25:39.531675"], ["updated_at", "2015-02-20 18:25:39.531675"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:25:39.534276"], ["updated_at", "2015-02-20 18:25:39.534276"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.537092' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:25:39.548736"], ["updated_at", "2015-02-20 18:25:39.548736"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:25:39.550655"], ["updated_at", "2015-02-20 18:25:39.550655"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.553986' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:25:39.559166"], ["updated_at", "2015-02-20 18:25:39.559166"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.561374' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 34ms (Views: 12.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.633120"], ["updated_at", "2015-02-20 18:26:16.633120"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.670928"], ["updated_at", "2015-02-20 18:26:16.670928"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.678756"], ["updated_at", "2015-02-20 18:26:16.678756"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.707636"], ["updated_at", "2015-02-20 18:26:16.707636"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.713319"], ["updated_at", "2015-02-20 18:26:16.713319"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:26:16.725476"], ["updated_at", "2015-02-20 18:26:16.725476"]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:26:16.728853"], ["updated_at", "2015-02-20 18:26:16.728853"]] [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.737759' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:26:16.750431"], ["updated_at", "2015-02-20 18:26:16.750431"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:26:16.752459"], ["updated_at", "2015-02-20 18:26:16.752459"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.754341' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:26:16.761848"], ["updated_at", "2015-02-20 18:26:16.761848"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.764113' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:26:16.776872"], ["updated_at", "2015-02-20 18:26:16.776872"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:26:16.778752"], ["updated_at", "2015-02-20 18:26:16.778752"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.780518' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:26:16.822553"], ["updated_at", "2015-02-20 18:26:16.822553"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:26:16.825087"], ["updated_at", "2015-02-20 18:26:16.825087"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.827182' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:26:16.838429"], ["updated_at", "2015-02-20 18:26:16.838429"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123410 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:26:16.840488"], ["updated_at", "2015-02-20 18:26:16.840488"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.842364' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.848812"], ["updated_at", "2015-02-20 18:26:16.848812"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.854408"], ["updated_at", "2015-02-20 18:26:16.854408"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.859420"], ["updated_at", "2015-02-20 18:26:16.859420"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.865607"], ["updated_at", "2015-02-20 18:26:16.865607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.870892"], ["updated_at", "2015-02-20 18:26:16.870892"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:16.877262"], ["updated_at", "2015-02-20 18:26:16.877262"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (579.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 30ms (Views: 10.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:48.944293"], ["updated_at", "2015-02-20 18:26:48.944293"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:48.968319"], ["updated_at", "2015-02-20 18:26:48.968319"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:48.997772"], ["updated_at", "2015-02-20 18:26:48.997772"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:49.038477"], ["updated_at", "2015-02-20 18:26:49.038477"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:49.046535"], ["updated_at", "2015-02-20 18:26:49.046535"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:26:49.062095"], ["updated_at", "2015-02-20 18:26:49.062095"]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:26:49.065492"], ["updated_at", "2015-02-20 18:26:49.065492"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.076677' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:26:49.094143"], ["updated_at", "2015-02-20 18:26:49.094143"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:26:49.096401"], ["updated_at", "2015-02-20 18:26:49.096401"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.098754' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:26:49.103609"], ["updated_at", "2015-02-20 18:26:49.103609"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.105726' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:26:49.118573"], ["updated_at", "2015-02-20 18:26:49.118573"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:26:49.120558"], ["updated_at", "2015-02-20 18:26:49.120558"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.122481' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:26:49.167764"], ["updated_at", "2015-02-20 18:26:49.167764"]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12349 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:26:49.172006"], ["updated_at", "2015-02-20 18:26:49.172006"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.175867' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:26:49.187102"], ["updated_at", "2015-02-20 18:26:49.187102"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"123410 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:26:49.189273"], ["updated_at", "2015-02-20 18:26:49.189273"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.191362' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:49.200727"], ["updated_at", "2015-02-20 18:26:49.200727"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:49.208340"], ["updated_at", "2015-02-20 18:26:49.208340"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:49.211819"], ["updated_at", "2015-02-20 18:26:49.211819"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:49.219426"], ["updated_at", "2015-02-20 18:26:49.219426"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:49.224926"], ["updated_at", "2015-02-20 18:26:49.224926"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:26:49.230284"], ["updated_at", "2015-02-20 18:26:49.230284"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (100.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (631.4ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:27:53.900713"], ["updated_at", "2015-02-20 18:27:53.900713"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:27:53.907724"], ["updated_at", "2015-02-20 18:27:53.907724"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:27:53.917355' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:27:53.927006"], ["updated_at", "2015-02-20 18:27:53.927006"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:27:53.930496' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.4ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:27:53.946392"], ["updated_at", "2015-02-20 18:27:53.946392"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:27:53.949265"], ["updated_at", "2015-02-20 18:27:53.949265"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:27:53.951658' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:27:53.963535"], ["updated_at", "2015-02-20 18:27:53.963535"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:27:53.965431"], ["updated_at", "2015-02-20 18:27:53.965431"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:27:53.967323' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:27:53.996964"], ["updated_at", "2015-02-20 18:27:53.996964"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12346 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:27:53.999167"], ["updated_at", "2015-02-20 18:27:53.999167"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:27:54.001334' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:27:54.011737"], ["updated_at", "2015-02-20 18:27:54.011737"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "city", "state_code", "country_code", "postal_code", "address1", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["address1", "[\"12347 Fake Street\", nil, \"San Antonio\", \"TX\", \"US\", \"92387\"]"], ["addressable_id", 1], ["created_at", "2015-02-20 18:27:54.014344"], ["updated_at", "2015-02-20 18:27:54.014344"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:27:54.016301' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.467452"], ["updated_at", "2015-02-20 18:27:54.467452"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.498864"], ["updated_at", "2015-02-20 18:27:54.498864"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.506281"], ["updated_at", "2015-02-20 18:27:54.506281"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.539864"], ["updated_at", "2015-02-20 18:27:54.539864"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.545481"], ["updated_at", "2015-02-20 18:27:54.545481"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.554142"], ["updated_at", "2015-02-20 18:27:54.554142"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.557675"], ["updated_at", "2015-02-20 18:27:54.557675"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.562922"], ["updated_at", "2015-02-20 18:27:54.562922"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.568167"], ["updated_at", "2015-02-20 18:27:54.568167"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.583540"], ["updated_at", "2015-02-20 18:27:54.583540"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:27:54.590890"], ["updated_at", "2015-02-20 18:27:54.590890"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:55.473597"], ["updated_at", "2015-02-20 18:28:55.473597"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:55.534085"], ["updated_at", "2015-02-20 18:28:55.534085"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:55.981634"], ["updated_at", "2015-02-20 18:28:55.981634"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:55.984140"], ["updated_at", "2015-02-20 18:28:55.984140"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:55.991554"], ["updated_at", "2015-02-20 18:28:55.991554"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:55.996833"], ["updated_at", "2015-02-20 18:28:55.996833"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:28:56.047065"], ["updated_at", "2015-02-20 18:28:56.047065"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:28:56.050185"], ["updated_at", "2015-02-20 18:28:56.050185"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.055760' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:28:56.072917"], ["updated_at", "2015-02-20 18:28:56.072917"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:28:56.076427"], ["updated_at", "2015-02-20 18:28:56.076427"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.079200' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:28:56.107214"], ["updated_at", "2015-02-20 18:28:56.107214"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:28:56.109611"], ["updated_at", "2015-02-20 18:28:56.109611"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.111631' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:28:56.126249"], ["updated_at", "2015-02-20 18:28:56.126249"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:28:56.128754"], ["updated_at", "2015-02-20 18:28:56.128754"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.130805' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:28:56.135559"], ["updated_at", "2015-02-20 18:28:56.135559"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.137923' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithAddress Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:28:56.151769"], ["updated_at", "2015-02-20 18:28:56.151769"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:28:56.153699"], ["updated_at", "2015-02-20 18:28:56.153699"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.155843' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:56.181113"], ["updated_at", "2015-02-20 18:28:56.181113"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:56.186431"], ["updated_at", "2015-02-20 18:28:56.186431"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:56.212633"], ["updated_at", "2015-02-20 18:28:56.212633"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:56.252040"], ["updated_at", "2015-02-20 18:28:56.252040"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:28:56.261362"], ["updated_at", "2015-02-20 18:28:56.261362"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.0ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (633.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:29:25.770303"], ["updated_at", "2015-02-20 18:29:25.770303"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:29:25.775991"], ["updated_at", "2015-02-20 18:29:25.775991"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:29:25.785560' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:29:25.795531"], ["updated_at", "2015-02-20 18:29:25.795531"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:29:25.799418' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.3ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:29:25.821006"], ["updated_at", "2015-02-20 18:29:25.821006"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:29:25.824179"], ["updated_at", "2015-02-20 18:29:25.824179"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:29:25.827363' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:29:25.838190"], ["updated_at", "2015-02-20 18:29:25.838190"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:29:25.840738"], ["updated_at", "2015-02-20 18:29:25.840738"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:29:25.843086' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.291703"], ["updated_at", "2015-02-20 18:29:26.291703"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.314476"], ["updated_at", "2015-02-20 18:29:26.314476"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.324382"], ["updated_at", "2015-02-20 18:29:26.324382"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.360450"], ["updated_at", "2015-02-20 18:29:26.360450"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.366988"], ["updated_at", "2015-02-20 18:29:26.366988"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:29:26.398322"], ["updated_at", "2015-02-20 18:29:26.398322"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:29:26.400915"], ["updated_at", "2015-02-20 18:29:26.400915"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:29:26.402973' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:29:26.414888"], ["updated_at", "2015-02-20 18:29:26.414888"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:29:26.417348"], ["updated_at", "2015-02-20 18:29:26.417348"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:29:26.419465' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.499121"], ["updated_at", "2015-02-20 18:29:26.499121"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.505382"], ["updated_at", "2015-02-20 18:29:26.505382"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.508031"], ["updated_at", "2015-02-20 18:29:26.508031"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.516179"], ["updated_at", "2015-02-20 18:29:26.516179"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.521907"], ["updated_at", "2015-02-20 18:29:26.521907"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:26.527367"], ["updated_at", "2015-02-20 18:29:26.527367"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.1ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:59.361577"], ["updated_at", "2015-02-20 18:29:59.361577"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:59.865181"], ["updated_at", "2015-02-20 18:29:59.865181"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:59.870102"], ["updated_at", "2015-02-20 18:29:59.870102"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:59.877872"], ["updated_at", "2015-02-20 18:29:59.877872"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:59.883084"], ["updated_at", "2015-02-20 18:29:59.883084"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:29:59.885527"], ["updated_at", "2015-02-20 18:29:59.885527"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:29:59.984373"], ["updated_at", "2015-02-20 18:29:59.984373"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:29:59.986535"], ["updated_at", "2015-02-20 18:29:59.986535"]] [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:29:59.993000' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:30:00.010169"], ["updated_at", "2015-02-20 18:30:00.010169"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:30:00.012370"], ["updated_at", "2015-02-20 18:30:00.012370"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.015162' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUserWithSingularAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mEffective::Address Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:30:00.075951"], ["updated_at", "2015-02-20 18:30:00.075951"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:30:00.085341"], ["updated_at", "2015-02-20 18:30:00.085341"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:30:00.121621"], ["updated_at", "2015-02-20 18:30:00.121621"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:30:00.129276"], ["updated_at", "2015-02-20 18:30:00.129276"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:30:00.157823"], ["updated_at", "2015-02-20 18:30:00.157823"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:30:00.181431"], ["updated_at", "2015-02-20 18:30:00.181431"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:30:00.183736"], ["updated_at", "2015-02-20 18:30:00.183736"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.186338' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:30:00.200300"], ["updated_at", "2015-02-20 18:30:00.200300"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:30:00.202492"], ["updated_at", "2015-02-20 18:30:00.202492"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.204556' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:30:00.215505"], ["updated_at", "2015-02-20 18:30:00.215505"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:30:00.217506"], ["updated_at", "2015-02-20 18:30:00.217506"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.219458' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:30:00.224690"], ["updated_at", "2015-02-20 18:30:00.224690"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.227329' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (1.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:31:28.812586"], ["updated_at", "2015-02-20 18:31:28.812586"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:31:28.819899"], ["updated_at", "2015-02-20 18:31:28.819899"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:31:28.828420' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:31:28.838564"], ["updated_at", "2015-02-20 18:31:28.838564"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:31:28.841832' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:31:28.858239"], ["updated_at", "2015-02-20 18:31:28.858239"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:31:28.861231"], ["updated_at", "2015-02-20 18:31:28.861231"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:31:28.863781' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:31:28.873073"], ["updated_at", "2015-02-20 18:31:28.873073"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:31:28.875185"], ["updated_at", "2015-02-20 18:31:28.875185"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:31:28.877573' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.333591"], ["updated_at", "2015-02-20 18:31:29.333591"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.360856"], ["updated_at", "2015-02-20 18:31:29.360856"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.368283"], ["updated_at", "2015-02-20 18:31:29.368283"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.397705"], ["updated_at", "2015-02-20 18:31:29.397705"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.404780"], ["updated_at", "2015-02-20 18:31:29.404780"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:31:29.438261"], ["updated_at", "2015-02-20 18:31:29.438261"]] [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:31:29.441345"], ["updated_at", "2015-02-20 18:31:29.441345"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:31:29.446184' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:31:29.461226"], ["updated_at", "2015-02-20 18:31:29.461226"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:31:29.463081"], ["updated_at", "2015-02-20 18:31:29.463081"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:31:29.465137' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.535857"], ["updated_at", "2015-02-20 18:31:29.535857"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.538942"], ["updated_at", "2015-02-20 18:31:29.538942"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.546258"], ["updated_at", "2015-02-20 18:31:29.546258"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.553969"], ["updated_at", "2015-02-20 18:31:29.553969"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.559234"], ["updated_at", "2015-02-20 18:31:29.559234"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:29.565759"], ["updated_at", "2015-02-20 18:31:29.565759"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (633.6ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:46.920630"], ["updated_at", "2015-02-20 18:31:46.920630"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:46.976997"], ["updated_at", "2015-02-20 18:31:46.976997"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:46.979697"], ["updated_at", "2015-02-20 18:31:46.979697"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:47.427465"], ["updated_at", "2015-02-20 18:31:47.427465"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:47.435351"], ["updated_at", "2015-02-20 18:31:47.435351"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:47.442052"], ["updated_at", "2015-02-20 18:31:47.442052"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:31:47.556909"], ["updated_at", "2015-02-20 18:31:47.556909"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:31:47.559356"], ["updated_at", "2015-02-20 18:31:47.559356"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.564319' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:31:47.578268"], ["updated_at", "2015-02-20 18:31:47.578268"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:31:47.580246"], ["updated_at", "2015-02-20 18:31:47.580246"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.582405' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mUserWithSingularAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mEffective::Address Load (0.4ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:47.619891"], ["updated_at", "2015-02-20 18:31:47.619891"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:47.626099"], ["updated_at", "2015-02-20 18:31:47.626099"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:47.650786"], ["updated_at", "2015-02-20 18:31:47.650786"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:47.656944"], ["updated_at", "2015-02-20 18:31:47.656944"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:31:47.699912"], ["updated_at", "2015-02-20 18:31:47.699912"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:31:47.721175"], ["updated_at", "2015-02-20 18:31:47.721175"]] [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:31:47.723166"], ["updated_at", "2015-02-20 18:31:47.723166"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.727235' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:31:47.740126"], ["updated_at", "2015-02-20 18:31:47.740126"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:31:47.742559"], ["updated_at", "2015-02-20 18:31:47.742559"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.744565' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:31:47.753743"], ["updated_at", "2015-02-20 18:31:47.753743"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:31:47.756438"], ["updated_at", "2015-02-20 18:31:47.756438"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.759135' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:31:47.763785"], ["updated_at", "2015-02-20 18:31:47.763785"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.766034' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.8ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (633.5ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.1ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:32:14.822408"], ["updated_at", "2015-02-20 18:32:14.822408"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:32:14.828444"], ["updated_at", "2015-02-20 18:32:14.828444"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.837677' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:32:14.849178"], ["updated_at", "2015-02-20 18:32:14.849178"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.852753' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:32:14.868815"], ["updated_at", "2015-02-20 18:32:14.868815"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:32:14.871461"], ["updated_at", "2015-02-20 18:32:14.871461"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.874971' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:32:14.888017"], ["updated_at", "2015-02-20 18:32:14.888017"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:32:14.890169"], ["updated_at", "2015-02-20 18:32:14.890169"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.893025' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:32:14.921980"], ["updated_at", "2015-02-20 18:32:14.921980"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:32:14.924360"], ["updated_at", "2015-02-20 18:32:14.924360"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.927447' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:32:14.941660"], ["updated_at", "2015-02-20 18:32:14.941660"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:32:14.944647"], ["updated_at", "2015-02-20 18:32:14.944647"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.948939' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.390198"], ["updated_at", "2015-02-20 18:32:15.390198"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.416916"], ["updated_at", "2015-02-20 18:32:15.416916"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.423509"], ["updated_at", "2015-02-20 18:32:15.423509"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.451500"], ["updated_at", "2015-02-20 18:32:15.451500"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.458763"], ["updated_at", "2015-02-20 18:32:15.458763"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.472747"], ["updated_at", "2015-02-20 18:32:15.472747"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.476098"], ["updated_at", "2015-02-20 18:32:15.476098"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.481765"], ["updated_at", "2015-02-20 18:32:15.481765"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.503744"], ["updated_at", "2015-02-20 18:32:15.503744"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.510943"], ["updated_at", "2015-02-20 18:32:15.510943"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:15.517494"], ["updated_at", "2015-02-20 18:32:15.517494"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.5ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:45.610420"], ["updated_at", "2015-02-20 18:32:45.610420"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.101362"], ["updated_at", "2015-02-20 18:32:46.101362"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.109469"], ["updated_at", "2015-02-20 18:32:46.109469"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.115499"], ["updated_at", "2015-02-20 18:32:46.115499"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.118322"], ["updated_at", "2015-02-20 18:32:46.118322"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.124827"], ["updated_at", "2015-02-20 18:32:46.124827"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:32:46.176399"], ["updated_at", "2015-02-20 18:32:46.176399"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:32:46.178759"], ["updated_at", "2015-02-20 18:32:46.178759"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.183764' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:32:46.203668"], ["updated_at", "2015-02-20 18:32:46.203668"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:32:46.205715"], ["updated_at", "2015-02-20 18:32:46.205715"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.209064' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:32:46.235916"], ["updated_at", "2015-02-20 18:32:46.235916"]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:32:46.238488"], ["updated_at", "2015-02-20 18:32:46.238488"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.242304' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:32:46.254872"], ["updated_at", "2015-02-20 18:32:46.254872"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:32:46.256750"], ["updated_at", "2015-02-20 18:32:46.256750"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.258656' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:32:46.264591"], ["updated_at", "2015-02-20 18:32:46.264591"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.266787' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:32:46.279682"], ["updated_at", "2015-02-20 18:32:46.279682"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:32:46.281537"], ["updated_at", "2015-02-20 18:32:46.281537"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.283318' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.309822"], ["updated_at", "2015-02-20 18:32:46.309822"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.316260"], ["updated_at", "2015-02-20 18:32:46.316260"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.344994"], ["updated_at", "2015-02-20 18:32:46.344994"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.354039"], ["updated_at", "2015-02-20 18:32:46.354039"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:32:46.394673"], ["updated_at", "2015-02-20 18:32:46.394673"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.1ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 36ms (Views: 12.2ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.074584"], ["updated_at", "2015-02-20 18:33:09.074584"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.090844"], ["updated_at", "2015-02-20 18:33:09.090844"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.097891"], ["updated_at", "2015-02-20 18:33:09.097891"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.102858"], ["updated_at", "2015-02-20 18:33:09.102858"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.108254"], ["updated_at", "2015-02-20 18:33:09.108254"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.110627"], ["updated_at", "2015-02-20 18:33:09.110627"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.178659"], ["updated_at", "2015-02-20 18:33:09.178659"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.185212"], ["updated_at", "2015-02-20 18:33:09.185212"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.214988"], ["updated_at", "2015-02-20 18:33:09.214988"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.220549"], ["updated_at", "2015-02-20 18:33:09.220549"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:09.245044"], ["updated_at", "2015-02-20 18:33:09.245044"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:33:09.270445"], ["updated_at", "2015-02-20 18:33:09.270445"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:33:09.272713"], ["updated_at", "2015-02-20 18:33:09.272713"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.277827' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:33:09.292037"], ["updated_at", "2015-02-20 18:33:09.292037"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:33:09.293963"], ["updated_at", "2015-02-20 18:33:09.293963"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.297321' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithSingularAddress Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:33:09.326750"], ["updated_at", "2015-02-20 18:33:09.326750"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:09.328754"], ["updated_at", "2015-02-20 18:33:09.328754"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.330742' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:33:09.342970"], ["updated_at", "2015-02-20 18:33:09.342970"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:09.345027"], ["updated_at", "2015-02-20 18:33:09.345027"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.347368' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:33:09.359706"], ["updated_at", "2015-02-20 18:33:09.359706"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:09.361600"], ["updated_at", "2015-02-20 18:33:09.361600"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.363383' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:09.368765"], ["updated_at", "2015-02-20 18:33:09.368765"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.371854' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (1.4ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 37ms (Views: 11.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.486667"], ["updated_at", "2015-02-20 18:33:41.486667"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.502251"], ["updated_at", "2015-02-20 18:33:41.502251"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.509840"], ["updated_at", "2015-02-20 18:33:41.509840"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.514557"], ["updated_at", "2015-02-20 18:33:41.514557"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.519641"], ["updated_at", "2015-02-20 18:33:41.519641"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.522889"], ["updated_at", "2015-02-20 18:33:41.522889"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.575613"], ["updated_at", "2015-02-20 18:33:41.575613"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.581295"], ["updated_at", "2015-02-20 18:33:41.581295"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.626398"], ["updated_at", "2015-02-20 18:33:41.626398"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.631622"], ["updated_at", "2015-02-20 18:33:41.631622"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:41.657554"], ["updated_at", "2015-02-20 18:33:41.657554"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:33:41.686582"], ["updated_at", "2015-02-20 18:33:41.686582"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:33:41.688673"], ["updated_at", "2015-02-20 18:33:41.688673"]] [1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.693911' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:33:41.709828"], ["updated_at", "2015-02-20 18:33:41.709828"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:33:41.711781"], ["updated_at", "2015-02-20 18:33:41.711781"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.714692' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithSingularAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:33:41.744649"], ["updated_at", "2015-02-20 18:33:41.744649"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:41.746573"], ["updated_at", "2015-02-20 18:33:41.746573"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.748510' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:33:41.758674"], ["updated_at", "2015-02-20 18:33:41.758674"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:41.760977"], ["updated_at", "2015-02-20 18:33:41.760977"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.763059' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:33:41.775757"], ["updated_at", "2015-02-20 18:33:41.775757"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:41.778671"], ["updated_at", "2015-02-20 18:33:41.778671"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.781838' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:41.788527"], ["updated_at", "2015-02-20 18:33:41.788527"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.791972' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (32.9ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (629.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.3ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.7ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:48.881535"], ["updated_at", "2015-02-20 18:33:48.881535"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:48.942481"], ["updated_at", "2015-02-20 18:33:48.942481"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:49.381736"], ["updated_at", "2015-02-20 18:33:49.381736"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:49.385088"], ["updated_at", "2015-02-20 18:33:49.385088"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:49.391918"], ["updated_at", "2015-02-20 18:33:49.391918"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:49.397109"], ["updated_at", "2015-02-20 18:33:49.397109"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.6ms) Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:33:49.505662"], ["updated_at", "2015-02-20 18:33:49.505662"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:33:49.508130"], ["updated_at", "2015-02-20 18:33:49.508130"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.513335' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:33:49.528257"], ["updated_at", "2015-02-20 18:33:49.528257"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:33:49.530279"], ["updated_at", "2015-02-20 18:33:49.530279"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.532200' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36mUserWithSingularAddress Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mEffective::Address Load (0.2ms)[0m SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:49.565207"], ["updated_at", "2015-02-20 18:33:49.565207"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:49.575197"], ["updated_at", "2015-02-20 18:33:49.575197"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (10.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:49.629114"], ["updated_at", "2015-02-20 18:33:49.629114"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:49.658534"], ["updated_at", "2015-02-20 18:33:49.658534"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:33:49.664244"], ["updated_at", "2015-02-20 18:33:49.664244"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:33:49.684431"], ["updated_at", "2015-02-20 18:33:49.684431"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:49.688225"], ["updated_at", "2015-02-20 18:33:49.688225"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.691254' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:33:49.704313"], ["updated_at", "2015-02-20 18:33:49.704313"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:49.706428"], ["updated_at", "2015-02-20 18:33:49.706428"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.708541' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:33:49.716898"], ["updated_at", "2015-02-20 18:33:49.716898"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:49.719564"], ["updated_at", "2015-02-20 18:33:49.719564"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.721756' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:33:49.727216"], ["updated_at", "2015-02-20 18:33:49.727216"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.729383' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (99.3ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (635.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.9ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.2ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.8ms) Completed 200 OK in 35ms (Views: 12.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.040655"], ["updated_at", "2015-02-20 18:35:20.040655"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.056847"], ["updated_at", "2015-02-20 18:35:20.056847"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.064095"], ["updated_at", "2015-02-20 18:35:20.064095"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.071065"], ["updated_at", "2015-02-20 18:35:20.071065"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.074893"], ["updated_at", "2015-02-20 18:35:20.074893"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.083358"], ["updated_at", "2015-02-20 18:35:20.083358"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.134884"], ["updated_at", "2015-02-20 18:35:20.134884"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.140184"], ["updated_at", "2015-02-20 18:35:20.140184"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.188029"], ["updated_at", "2015-02-20 18:35:20.188029"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.195931"], ["updated_at", "2015-02-20 18:35:20.195931"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:20.224268"], ["updated_at", "2015-02-20 18:35:20.224268"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:35:20.251637"], ["updated_at", "2015-02-20 18:35:20.251637"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["addressable_type", "User"], ["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:35:20.254149"], ["updated_at", "2015-02-20 18:35:20.254149"]] [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.259462' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:35:20.273097"], ["updated_at", "2015-02-20 18:35:20.273097"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "123410 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:35:20.274846"], ["updated_at", "2015-02-20 18:35:20.274846"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.276801' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "123411 Fake Street"], ["updated_at", "2015-02-20 18:35:20.293371"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.295513' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithSingularAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:35:20.308152"], ["updated_at", "2015-02-20 18:35:20.308152"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:20.310959"], ["updated_at", "2015-02-20 18:35:20.310959"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.313512' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:35:20.323151"], ["updated_at", "2015-02-20 18:35:20.323151"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:20.324933"], ["updated_at", "2015-02-20 18:35:20.324933"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.326751' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_4@effective_addresses.test"], ["first_name", "First Name 4"], ["last_name", "Last Name 4"], ["created_at", "2015-02-20 18:35:20.339389"], ["updated_at", "2015-02-20 18:35:20.339389"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:20.341272"], ["updated_at", "2015-02-20 18:35:20.341272"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.343264' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:20.348163"], ["updated_at", "2015-02-20 18:35:20.348163"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.351354' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (3.2ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.1ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (0.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:42.928689"], ["updated_at", "2015-02-20 18:35:42.928689"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:42.988725"], ["updated_at", "2015-02-20 18:35:42.988725"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:43.446749"], ["updated_at", "2015-02-20 18:35:43.446749"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:43.449741"], ["updated_at", "2015-02-20 18:35:43.449741"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:43.457082"], ["updated_at", "2015-02-20 18:35:43.457082"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:43.461782"], ["updated_at", "2015-02-20 18:35:43.461782"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:35:43.515805"], ["updated_at", "2015-02-20 18:35:43.515805"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:35:43.517727"], ["updated_at", "2015-02-20 18:35:43.517727"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.525153' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "12347 Fake Street"], ["updated_at", "2015-02-20 18:35:43.534892"], ["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.536887' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithSingularAddress Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (2.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:35:43.553107"], ["updated_at", "2015-02-20 18:35:43.553107"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:35:43.554863"], ["updated_at", "2015-02-20 18:35:43.554863"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.556915' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:35:43.582771"], ["updated_at", "2015-02-20 18:35:43.582771"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:43.584733"], ["updated_at", "2015-02-20 18:35:43.584733"]] [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.586643' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:35:43.598212"], ["updated_at", "2015-02-20 18:35:43.598212"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:43.599949"], ["updated_at", "2015-02-20 18:35:43.599949"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.601737' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:43.606241"], ["updated_at", "2015-02-20 18:35:43.606241"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.610123' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.1ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:35:43.621949"], ["updated_at", "2015-02-20 18:35:43.621949"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:43.623681"], ["updated_at", "2015-02-20 18:35:43.623681"]] [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.625490' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:43.649184"], ["updated_at", "2015-02-20 18:35:43.649184"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:43.656553"], ["updated_at", "2015-02-20 18:35:43.656553"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:43.683858"], ["updated_at", "2015-02-20 18:35:43.683858"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:43.691467"], ["updated_at", "2015-02-20 18:35:43.691467"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:43.734675"], ["updated_at", "2015-02-20 18:35:43.734675"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.3ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36m (98.6ms)[0m [1mCREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_type" varchar, "addressable_id" integer, "category" varchar(64), "full_name" varchar, "address1" varchar, "address2" varchar, "city" varchar, "state_code" varchar, "country_code" varchar, "postal_code" varchar, "updated_at" datetime, "created_at" datetime) [0m [1m[35m (0.2ms)[0m select sqlite_version(*) [1m[36m (628.8ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id' AND type='index' [1m[36m (1.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m [1m[35m (1.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar, "reset_password_token" varchar, "reset_password_sent_at" datetime, "remember_created_at" datetime, "confirmation_sent_at" datetime, "confirmed_at" datetime, "confirmation_token" varchar, "unconfirmed_email" varchar, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "roles_mask" integer DEFAULT 0, "archived" boolean DEFAULT 'f', "updated_at" datetime, "created_at" datetime) [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('4') [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:57.240107"], ["updated_at", "2015-02-20 18:35:57.240107"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:57.299625"], ["updated_at", "2015-02-20 18:35:57.299625"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:57.802369"], ["updated_at", "2015-02-20 18:35:57.802369"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.4ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:57.810546"], ["updated_at", "2015-02-20 18:35:57.810546"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:57.814916"], ["updated_at", "2015-02-20 18:35:57.814916"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:57.822969"], ["updated_at", "2015-02-20 18:35:57.822969"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:35:57.880385"], ["updated_at", "2015-02-20 18:35:57.880385"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12346 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:35:57.882485"], ["updated_at", "2015-02-20 18:35:57.882485"]] [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.888273' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "12347 Fake Street"], ["updated_at", "2015-02-20 18:35:57.900549"], ["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.902768' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithSingularAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:35:57.916540"], ["updated_at", "2015-02-20 18:35:57.916540"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("addressable_type", "category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["addressable_type", "User"], ["category", "billing"], ["address1", "12348 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 18:35:57.919198"], ["updated_at", "2015-02-20 18:35:57.919198"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.921816' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "user_1@effective_addresses.test"], ["first_name", "First Name 1"], ["last_name", "Last Name 1"], ["created_at", "2015-02-20 18:35:57.950582"], ["updated_at", "2015-02-20 18:35:57.950582"]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:57.952836"], ["updated_at", "2015-02-20 18:35:57.952836"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.955231' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_2@effective_addresses.test"], ["first_name", "First Name 2"], ["last_name", "Last Name 2"], ["created_at", "2015-02-20 18:35:57.970859"], ["updated_at", "2015-02-20 18:35:57.970859"]] [1m[35mSQL (0.3ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:57.973047"], ["updated_at", "2015-02-20 18:35:57.973047"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.976179' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["address1", "123412 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:57.981882"], ["updated_at", "2015-02-20 18:35:57.981882"]] [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.984249' WHERE "users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "addresses"[0m [1m[35mUserWithAddress Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mEffective::Address Load (0.2ms)[0m [1mSELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC[0m [["addressable_id", 1], ["addressable_type", "User"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "first_name", "last_name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["email", "user_3@effective_addresses.test"], ["first_name", "First Name 3"], ["last_name", "Last Name 3"], ["created_at", "2015-02-20 18:35:57.997331"], ["updated_at", "2015-02-20 18:35:57.997331"]] [1m[35mSQL (0.2ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123413 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["addressable_type", "User"], ["created_at", "2015-02-20 18:35:57.999452"], ["updated_at", "2015-02-20 18:35:57.999452"]] [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "updated_at" = '2015-02-20 18:35:58.001844' WHERE "users"."id" = ? [["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "addresses" [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123414 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:58.026531"], ["updated_at", "2015-02-20 18:35:58.026531"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:58.034165"], ["updated_at", "2015-02-20 18:35:58.034165"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123415 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:58.066037"], ["updated_at", "2015-02-20 18:35:58.066037"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "addresses" ("category", "full_name", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["category", "billing"], ["full_name", "Peter Pan"], ["address1", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:58.074596"], ["updated_at", "2015-02-20 18:35:58.074596"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["category", "billing"], ["address1", "123416 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["created_at", "2015-02-20 18:35:58.119098"], ["updated_at", "2015-02-20 18:35:58.119098"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"US"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.4ms) Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"SG"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.5ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"CA"} Rendered /Users/matt/Sites/effective_addresses/app/views/effective/addresses/_subregions.html.haml (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction