ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.4ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:48:14.143509"], ["updated_at", "2015-02-20 16:48:14.143509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:48:14.164621"], ["updated_at", "2015-02-20 16:48:14.164621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.175095"], ["updated_at", "2015-02-20 16:48:14.175095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.4ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (637.5ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.4ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (5.0ms) 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)  (5.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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.315254"], ["updated_at", "2015-02-20 16:53:42.315254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:53:42.766979"], ["updated_at", "2015-02-20 16:53:42.766979"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:53:42.779851"], ["updated_at", "2015-02-20 16:53:42.779851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) 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 25ms (Views: 25.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:55:20.363286"], ["updated_at", "2015-02-20 16:55:20.363286"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:55:20.903354"], ["updated_at", "2015-02-20 16:55:20.903354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.914074"], ["updated_at", "2015-02-20 16:55:20.914074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (83.5ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (629.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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:55:59.169651"], ["updated_at", "2015-02-20 16:55:59.169651"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:55:59.197194"], ["updated_at", "2015-02-20 16:55:59.197194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.793342"], ["updated_at", "2015-02-20 16:55:59.793342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 35ms (Views: 12.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:07.262428"], ["updated_at", "2015-02-20 16:56:07.262428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.284634"], ["updated_at", "2015-02-20 16:56:07.284634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:07.295896"], ["updated_at", "2015-02-20 16:56:07.295896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 37ms (Views: 11.1ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.7ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:18.320785"], ["updated_at", "2015-02-20 16:56:18.320785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.339772"], ["updated_at", "2015-02-20 16:56:18.339772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:18.351925"], ["updated_at", "2015-02-20 16:56:18.351925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:35.015587"], ["updated_at", "2015-02-20 16:56:35.015587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:35.584145"], ["updated_at", "2015-02-20 16:56:35.584145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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.592695"], ["updated_at", "2015-02-20 16:56:35.592695"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) 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: 10.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.7ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 41ms (Views: 14.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.749480"], ["updated_at", "2015-02-20 16:56:47.749480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:47.763777"], ["updated_at", "2015-02-20 16:56:47.763777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:47.776631"], ["updated_at", "2015-02-20 16:56:47.776631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.5ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 34ms (Views: 12.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:24.968389"], ["updated_at", "2015-02-20 16:57:24.968389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.979550"], ["updated_at", "2015-02-20 16:57:24.979550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:57:24.990152"], ["updated_at", "2015-02-20 16:57:24.990152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (102.1ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (628.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.6ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.8ms) 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)  (3.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.835804"], ["updated_at", "2015-02-20 16:57:50.835804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:50.846073"], ["updated_at", "2015-02-20 16:57:50.846073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:57:50.857182"], ["updated_at", "2015-02-20 16:57:50.857182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (17.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (632.4ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.193553"], ["updated_at", "2015-02-20 16:58:29.193553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:58:29.207506"], ["updated_at", "2015-02-20 16:58:29.207506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:58:29.220132"], ["updated_at", "2015-02-20 16:58:29.220132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) 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.490793"], ["updated_at", "2015-02-20 16:58:39.490793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:58:39.944096"], ["updated_at", "2015-02-20 16:58:39.944096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:58:39.954805"], ["updated_at", "2015-02-20 16:58:39.954805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.326265"], ["updated_at", "2015-02-20 17:01:21.326265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:01:21.336850"], ["updated_at", "2015-02-20 17:01:21.336850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:01:21.347815"], ["updated_at", "2015-02-20 17:01:21.347815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 41ms (Views: 14.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("email", "first_name", "last_name", "encrypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.480186"], ["updated_at", "2015-02-20 17:01:41.480186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:01:41.493622"], ["updated_at", "2015-02-20 17:01:41.493622"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:01:41.505010"], ["updated_at", "2015-02-20 17:01:41.505010"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 34ms (Views: 12.3ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) 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.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.234118"], ["updated_at", "2015-02-20 17:02:31.234118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:02:31.252506"], ["updated_at", "2015-02-20 17:02:31.252506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:02:31.266186"], ["updated_at", "2015-02-20 17:02:31.266186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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 81ms (Views: 12.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.310430"], ["updated_at", "2015-02-20 17:03:42.310430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:03:42.329013"], ["updated_at", "2015-02-20 17:03:42.329013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:03:42.338973"], ["updated_at", "2015-02-20 17:03:42.338973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.4ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.740921"], ["updated_at", "2015-02-20 17:03:50.740921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:03:51.224416"], ["updated_at", "2015-02-20 17:03:51.224416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:03:51.237537"], ["updated_at", "2015-02-20 17:03:51.237537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (611.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:59.741572"], ["updated_at", "2015-02-20 17:03:59.741572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:00.267706"], ["updated_at", "2015-02-20 17:04:00.267706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) 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.276090"], ["updated_at", "2015-02-20 17:04:00.276090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) 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 11ms (Views: 10.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (4.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 33ms (Views: 10.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:04:28.190938"], ["updated_at", "2015-02-20 17:04:28.190938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:28.210832"], ["updated_at", "2015-02-20 17:04:28.210832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) 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.220427"], ["updated_at", "2015-02-20 17:04:28.220427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.6ms) 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)  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 35ms (Views: 12.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 5ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 5ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:04:40.279193"], ["updated_at", "2015-02-20 17:04:40.279193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.310926"], ["updated_at", "2015-02-20 17:04:40.310926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:40.322503"], ["updated_at", "2015-02-20 17:04:40.322503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 34ms (Views: 11.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:09:47.383480"], ["updated_at", "2015-02-20 17:09:47.383480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:09:47.402416"], ["updated_at", "2015-02-20 17:09:47.402416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.410532"], ["updated_at", "2015-02-20 17:09:47.410532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (368.7ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:10:09.061948"], ["updated_at", "2015-02-20 17:10:09.061948"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:10:09.561539"], ["updated_at", "2015-02-20 17:10:09.561539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.572180"], ["updated_at", "2015-02-20 17:10:09.572180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 33ms (Views: 11.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 5ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:11:43.207031"], ["updated_at", "2015-02-20 17:11:43.207031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:11:43.228498"], ["updated_at", "2015-02-20 17:11:43.228498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.237536"], ["updated_at", "2015-02-20 17:11:43.237536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 8ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:13:13.945788"], ["updated_at", "2015-02-20 17:13:13.945788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.961225"], ["updated_at", "2015-02-20 17:13:13.961225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:13.973873"], ["updated_at", "2015-02-20 17:13:13.973873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (345.6ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 3ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:13:53.904597"], ["updated_at", "2015-02-20 17:13:53.904597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:53.933534"], ["updated_at", "2015-02-20 17:13:53.933534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:53.945977"], ["updated_at", "2015-02-20 17:13:53.945977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.954350"], ["updated_at", "2015-02-20 17:13:53.954350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (632.5ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:14:14.691661"], ["updated_at", "2015-02-20 17:14:14.691661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.217054"], ["updated_at", "2015-02-20 17:14:15.217054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:14:15.226453"], ["updated_at", "2015-02-20 17:14:15.226453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:14:15.280579"], ["updated_at", "2015-02-20 17:14:15.280579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (2.3ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) CREATE 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)   (0.3ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (633.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.4ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 7ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 7ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:21:10.264189"], ["updated_at", "2015-02-20 17:21:10.264189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.281972"], ["updated_at", "2015-02-20 17:21:10.281972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:10.293748"], ["updated_at", "2015-02-20 17:21:10.293748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:21:53.948731"], ["updated_at", "2015-02-20 17:21:53.948731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:54.422589"], ["updated_at", "2015-02-20 17:21:54.422589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.432198"], ["updated_at", "2015-02-20 17:21:54.432198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21:54.542548"], ["updated_at", "2015-02-20 17:21:54.542548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:22:11.354260"], ["updated_at", "2015-02-20 17:22:11.354260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:11.430666"], ["updated_at", "2015-02-20 17:22:11.430666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.445274"], ["updated_at", "2015-02-20 17:22:11.445274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:22:11.457269"], ["updated_at", "2015-02-20 17:22:11.457269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction 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)  (0.2ms) rollback transaction  (0.1ms) 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.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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 17:22:36.733723"], ["updated_at", "2015-02-20 17:22:36.733723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) 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.753645"], ["updated_at", "2015-02-20 17:22:36.753645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:36.766119"], ["updated_at", "2015-02-20 17:22:36.766119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:22:36.826749"], ["updated_at", "2015-02-20 17:22:36.826749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (635.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:23:25.275600"], ["updated_at", "2015-02-20 17:23:25.275600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.299322"], ["updated_at", "2015-02-20 17:23:25.299322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:23:25.309141"], ["updated_at", "2015-02-20 17:23:25.309141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:23:25.319997"], ["updated_at", "2015-02-20 17:23:25.319997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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 17:24:18.674305"], ["updated_at", "2015-02-20 17:24:18.674305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.164909"], ["updated_at", "2015-02-20 17:24:19.164909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:24:19.179147"], ["updated_at", "2015-02-20 17:24:19.179147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) 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.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:24:19.287755"], ["updated_at", "2015-02-20 17:24:19.287755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 33ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 3ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 5ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:25:06.121439"], ["updated_at", "2015-02-20 17:25:06.121439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:25:06.143673"], ["updated_at", "2015-02-20 17:25:06.143673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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.153467"], ["updated_at", "2015-02-20 17:25:06.153467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:25:06.215089"], ["updated_at", "2015-02-20 17:25:06.215089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.7ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:25:13.009103"], ["updated_at", "2015-02-20 17:25:13.009103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:25:13.036136"], ["updated_at", "2015-02-20 17:25:13.036136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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.045120"], ["updated_at", "2015-02-20 17:25:13.045120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:25:13.059764"], ["updated_at", "2015-02-20 17:25:13.059764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 17:26:07.945160"], ["updated_at", "2015-02-20 17:26:07.945160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.026123"], ["updated_at", "2015-02-20 17:26:08.026123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:08.035801"], ["updated_at", "2015-02-20 17:26:08.035801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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:26:08.047277"], ["updated_at", "2015-02-20 17:26:08.047277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (634.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 7ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:26:28.983209"], ["updated_at", "2015-02-20 17:26:28.983209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.003801"], ["updated_at", "2015-02-20 17:26:29.003801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:29.013310"], ["updated_at", "2015-02-20 17:26:29.013310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:29.023299"], ["updated_at", "2015-02-20 17:26:29.023299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (634.7ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.3ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 34ms (Views: 10.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:27:00.664525"], ["updated_at", "2015-02-20 17:27:00.664525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:00.684607"], ["updated_at", "2015-02-20 17:27:00.684607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.692701"], ["updated_at", "2015-02-20 17:27:00.692701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:27:00.703698"], ["updated_at", "2015-02-20 17:27:00.703698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:27:40.672173"], ["updated_at", "2015-02-20 17:27:40.672173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.694434"], ["updated_at", "2015-02-20 17:27:40.694434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:40.705568"], ["updated_at", "2015-02-20 17:27:40.705568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:27:40.718524"], ["updated_at", "2015-02-20 17:27:40.718524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 34ms (Views: 11.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 17:28:47.256465"], ["updated_at", "2015-02-20 17:28:47.256465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.273927"], ["updated_at", "2015-02-20 17:28:47.273927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:28:47.286480"], ["updated_at", "2015-02-20 17:28:47.286480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:28:47.346159"], ["updated_at", "2015-02-20 17:28:47.346159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.4ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction 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)  (0.2ms) rollback transaction  (0.1ms) 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.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:29:06.729516"], ["updated_at", "2015-02-20 17:29:06.729516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:29:06.752988"], ["updated_at", "2015-02-20 17:29:06.752988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.760821"], ["updated_at", "2015-02-20 17:29:06.760821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:29:06.772948"], ["updated_at", "2015-02-20 17:29:06.772948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (98.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (636.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 34ms (Views: 12.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 17:29:25.593633"], ["updated_at", "2015-02-20 17:29:25.593633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:29:25.614585"], ["updated_at", "2015-02-20 17:29:25.614585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.625624"], ["updated_at", "2015-02-20 17:29:25.625624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:29:25.687277"], ["updated_at", "2015-02-20 17:29:25.687277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.3ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 32ms (Views: 11.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 3ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:29:59.979679"], ["updated_at", "2015-02-20 17:29:59.979679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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:30:00.021745"], ["updated_at", "2015-02-20 17:30:00.021745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:30:00.039636"], ["updated_at", "2015-02-20 17:30:00.039636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.051243"], ["updated_at", "2015-02-20 17:30:00.051243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:30:00.059605"], ["updated_at", "2015-02-20 17:30:00.059605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.4ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:31:03.527340"], ["updated_at", "2015-02-20 17:31:03.527340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) 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:31:03.573767"], ["updated_at", "2015-02-20 17:31:03.573767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.591151"], ["updated_at", "2015-02-20 17:31:03.591151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:03.602165"], ["updated_at", "2015-02-20 17:31:03.602165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:03.613035"], ["updated_at", "2015-02-20 17:31:03.613035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:31:37.112868"], ["updated_at", "2015-02-20 17:31:37.112868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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:31:37.157891"], ["updated_at", "2015-02-20 17:31:37.157891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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:31:37.205428"], ["updated_at", "2015-02-20 17:31:37.205428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.217641"], ["updated_at", "2015-02-20 17:31:37.217641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:37.231465"], ["updated_at", "2015-02-20 17:31:37.231465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:31:37.249150"], ["updated_at", "2015-02-20 17:31:37.249150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (636.5ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:40:31.570144"], ["updated_at", "2015-02-20 17:40:31.570144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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:40:31.610546"], ["updated_at", "2015-02-20 17:40:31.610546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:40:31.647999"], ["updated_at", "2015-02-20 17:40:31.647999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:40:31.721002"], ["updated_at", "2015-02-20 17:40:31.721002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:40:31.734321"], ["updated_at", "2015-02-20 17:40:31.734321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.744414"], ["updated_at", "2015-02-20 17:40:31.744414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.4ms) CREATE 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)   (0.6ms) select sqlite_version(*)  (618.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:41:17.257326"], ["updated_at", "2015-02-20 17:41:17.257326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:41:17.773602"], ["updated_at", "2015-02-20 17:41:17.773602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.782715"], ["updated_at", "2015-02-20 17:41:17.782715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:17.836789"], ["updated_at", "2015-02-20 17:41:17.836789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:41:17.892119"], ["updated_at", "2015-02-20 17:41:17.892119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (98.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (636.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.5ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.5ms) 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)  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 35ms (Views: 12.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:47.853708"], ["updated_at", "2015-02-20 17:41:47.853708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:41:47.910925"], ["updated_at", "2015-02-20 17:41:47.910925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:47.946167"], ["updated_at", "2015-02-20 17:41:47.946167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.961033"], ["updated_at", "2015-02-20 17:41:47.961033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:41:47.972589"], ["updated_at", "2015-02-20 17:41:47.972589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:41:47.986013"], ["updated_at", "2015-02-20 17:41:47.986013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) 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:49.665848"], ["updated_at", "2015-02-20 17:42:49.665848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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:42:49.709772"], ["updated_at", "2015-02-20 17:42:49.709772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:42:49.749625"], ["updated_at", "2015-02-20 17:42:49.749625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:42:49.827731"], ["updated_at", "2015-02-20 17:42:49.827731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.841556"], ["updated_at", "2015-02-20 17:42:49.841556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:42:49.854881"], ["updated_at", "2015-02-20 17:42:49.854881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (634.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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 17:42:58.179772"], ["updated_at", "2015-02-20 17:42:58.179772"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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:42:58.228668"], ["updated_at", "2015-02-20 17:42:58.228668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:42:58.277352"], ["updated_at", "2015-02-20 17:42:58.277352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:42:58.297274"], ["updated_at", "2015-02-20 17:42:58.297274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.309089"], ["updated_at", "2015-02-20 17:42:58.309089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:42:58.322008"], ["updated_at", "2015-02-20 17:42:58.322008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 17:43:05.246359"], ["updated_at", "2015-02-20 17:43:05.246359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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:43:05.297147"], ["updated_at", "2015-02-20 17:43:05.297147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:43:05.335397"], ["updated_at", "2015-02-20 17:43:05.335397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.350042"], ["updated_at", "2015-02-20 17:43:05.350042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:05.363156"], ["updated_at", "2015-02-20 17:43:05.363156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:05.375346"], ["updated_at", "2015-02-20 17:43:05.375346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (101.4ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (635.4ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:43:25.093545"], ["updated_at", "2015-02-20 17:43:25.093545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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:43:25.132835"], ["updated_at", "2015-02-20 17:43:25.132835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:43:25.172591"], ["updated_at", "2015-02-20 17:43:25.172591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.184620"], ["updated_at", "2015-02-20 17:43:25.184620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:25.198453"], ["updated_at", "2015-02-20 17:43:25.198453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:25.211437"], ["updated_at", "2015-02-20 17:43:25.211437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.6ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (628.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.4ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 34ms (Views: 12.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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 17:43:45.404228"], ["updated_at", "2015-02-20 17:43:45.404228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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:43:45.453748"], ["updated_at", "2015-02-20 17:43:45.453748"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:43:45.513435"], ["updated_at", "2015-02-20 17:43:45.513435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.3ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:43:45.537652' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:45.552705"], ["updated_at", "2015-02-20 17:43:45.552705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.564868"], ["updated_at", "2015-02-20 17:43:45.564868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:45.578606"], ["updated_at", "2015-02-20 17:43:45.578606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 17:44:14.289380"], ["updated_at", "2015-02-20 17:44:14.289380"]] SQL (0.4ms) 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"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:44:14.306665' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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:44:14.348381"], ["updated_at", "2015-02-20 17:44:14.348381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:44:14.852155"], ["updated_at", "2015-02-20 17:44:14.852155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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 12ms (Views: 11.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:44:14.924699"], ["updated_at", "2015-02-20 17:44:14.924699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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.934697"], ["updated_at", "2015-02-20 17:44:14.934697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:44:14.949177"], ["updated_at", "2015-02-20 17:44:14.949177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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 17:44:24.798838"], ["updated_at", "2015-02-20 17:44:24.798838"]] SQL (0.3ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:44:24.816153' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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:44:24.859805"], ["updated_at", "2015-02-20 17:44:24.859805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:44:25.430007"], ["updated_at", "2015-02-20 17:44:25.430007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:44:25.461043"], ["updated_at", "2015-02-20 17:44:25.461043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.476290"], ["updated_at", "2015-02-20 17:44:25.476290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:44:25.486736"], ["updated_at", "2015-02-20 17:44:25.486736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) 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 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) 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 3ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (18.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 17:45:50.616471"], ["updated_at", "2015-02-20 17:45:50.616471"]] SQL (0.3ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:45:50.632878' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:45:50.646749' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:45:50.661325"], ["updated_at", "2015-02-20 17:45:50.661325"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:45:50.665501' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:45:51.166763"], ["updated_at", "2015-02-20 17:45:51.166763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:45:51.203670"], ["updated_at", "2015-02-20 17:45:51.203670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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 12ms (Views: 10.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:45:51.276399"], ["updated_at", "2015-02-20 17:45:51.276399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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.283776"], ["updated_at", "2015-02-20 17:45:51.283776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:45:51.298758"], ["updated_at", "2015-02-20 17:45:51.298758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 17:47:34.511099"], ["updated_at", "2015-02-20 17:47:34.511099"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:47:34.525051' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:47:34.538397' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:34.557102"], ["updated_at", "2015-02-20 17:47:34.557102"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:47:34.561574' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:47:34.574003' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:47:34.604095"], ["updated_at", "2015-02-20 17:47:34.604095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:47:35.095470"], ["updated_at", "2015-02-20 17:47:35.095470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:47:35.131397"], ["updated_at", "2015-02-20 17:47:35.131397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.196101"], ["updated_at", "2015-02-20 17:47:35.196101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:47:35.208397"], ["updated_at", "2015-02-20 17:47:35.208397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 17:47:35.222146"], ["updated_at", "2015-02-20 17:47:35.222146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 17:47:56.126136"], ["updated_at", "2015-02-20 17:47:56.126136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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:56.184459"], ["updated_at", "2015-02-20 17:47:56.184459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:47:56.226243"], ["updated_at", "2015-02-20 17:47:56.226243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.3ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:47:56.246667' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:47:56.260107' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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 17:47:56.276511"], ["updated_at", "2015-02-20 17:47:56.276511"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:47:56.278368' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:47:56.286502"], ["updated_at", "2015-02-20 17:47:56.286502"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:47:56.290735' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.365134"], ["updated_at", "2015-02-20 17:47:56.365134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:47:56.375357"], ["updated_at", "2015-02-20 17:47:56.375357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 17:47:56.387604"], ["updated_at", "2015-02-20 17:47:56.387604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (633.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.3ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:48:17.267260"], ["updated_at", "2015-02-20 17:48:17.267260"]] SQL (0.2ms) 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"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:48:17.282742' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:48:17.296327' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:48:17.315931"], ["updated_at", "2015-02-20 17:48:17.315931"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:48:17.322222' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:48:17.338350"], ["updated_at", "2015-02-20 17:48:17.338350"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:48:17.341993' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:48:17.825259"], ["updated_at", "2015-02-20 17:48:17.825259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:48:17.860810"], ["updated_at", "2015-02-20 17:48:17.860810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:48:17.899428"], ["updated_at", "2015-02-20 17:48:17.899428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.918303"], ["updated_at", "2015-02-20 17:48:17.918303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:48:17.931357"], ["updated_at", "2015-02-20 17:48:17.931357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 17:48:17.945216"], ["updated_at", "2015-02-20 17:48:17.945216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:59:31.250332"], ["updated_at", "2015-02-20 17:59:31.250332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:59:31.746545"], ["updated_at", "2015-02-20 17:59:31.746545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.758841"], ["updated_at", "2015-02-20 17:59:31.758841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) 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: 10.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:59:31.866229"], ["updated_at", "2015-02-20 17:59:31.866229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:59:31.906709"], ["updated_at", "2015-02-20 17:59:31.906709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:59:31.964261"], ["updated_at", "2015-02-20 17:59:31.964261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]] SQL (0.4ms) 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 17:59:31.977177"], ["updated_at", "2015-02-20 17:59:31.977177"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:59:31.982833' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:59:32.001598"], ["updated_at", "2015-02-20 17:59:32.001598"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:59:32.005696' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.3ms) 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 17:59:32.016970"], ["updated_at", "2015-02-20 17:59:32.016970"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:59:32.020760' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-02-20 17:59:32.039271' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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.5ms) Completed 200 OK in 37ms (Views: 12.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:00:51.784121"], ["updated_at", "2015-02-20 18:00:51.784121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:00:51.805797"], ["updated_at", "2015-02-20 18:00:51.805797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.815038"], ["updated_at", "2015-02-20 18:00:51.815038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 18:00:51.893044"], ["updated_at", "2015-02-20 18:00:51.893044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:00:51.945360"], ["updated_at", "2015-02-20 18:00:51.945360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.2ms) 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:00:51.955382"], ["updated_at", "2015-02-20 18:00:51.955382"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:00:51.961825' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:00:51.976112"], ["updated_at", "2015-02-20 18:00:51.976112"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:00:51.981033' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:00:51.995873"], ["updated_at", "2015-02-20 18:00:51.995873"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:00:51.998337' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:00:52.006266' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (98.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (631.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:01.691542"], ["updated_at", "2015-02-20 18:01:01.691542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.751025"], ["updated_at", "2015-02-20 18:01:01.751025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:01:02.179716"], ["updated_at", "2015-02-20 18:01:02.179716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 18:01:02.237933"], ["updated_at", "2015-02-20 18:01:02.237933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:01:02.304140"], ["updated_at", "2015-02-20 18:01:02.304140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:02.314348"], ["updated_at", "2015-02-20 18:01:02.314348"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:01:02.321924' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:02.339633"], ["updated_at", "2015-02-20 18:01:02.339633"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:01:02.345069' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:01:02.350288"], ["updated_at", "2015-02-20 18:01:02.350288"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:01:02.352562' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:01:02.364228"], ["updated_at", "2015-02-20 18:01:02.364228"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:01:02.368247' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (98.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (633.4ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.631333"], ["updated_at", "2015-02-20 18:01:14.631333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:15.145096"], ["updated_at", "2015-02-20 18:01:15.145096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:01:15.161081"], ["updated_at", "2015-02-20 18:01:15.161081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:01:15.217289"], ["updated_at", "2015-02-20 18:01:15.217289"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:01:15.224729' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.3ms) 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:01:15.242108"], ["updated_at", "2015-02-20 18:01:15.242108"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:01:15.246123' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:01:15.253154' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:01:15.271191"], ["updated_at", "2015-02-20 18:01:15.271191"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:01:15.273463' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:01:15.297775"], ["updated_at", "2015-02-20 18:01:15.297775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:01:15.331170"], ["updated_at", "2015-02-20 18:01:15.331170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:01:15.363930"], ["updated_at", "2015-02-20 18:01:15.363930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (632.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:07:48.077858"], ["updated_at", "2015-02-20 18:07:48.077858"]] SQL (0.3ms) 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"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:07:48.098478' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:07:48.116294' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:07:48.141642"], ["updated_at", "2015-02-20 18:07:48.141642"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:07:48.148482' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]] SQL (0.2ms) 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:07:48.172821"], ["updated_at", "2015-02-20 18:07:48.172821"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:07:48.175743' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 18:07:48.692208"], ["updated_at", "2015-02-20 18:07:48.692208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:07:48.725777"], ["updated_at", "2015-02-20 18:07:48.725777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:07:48.763408"], ["updated_at", "2015-02-20 18:07:48.763408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.781651"], ["updated_at", "2015-02-20 18:07:48.781651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:07:48.792858"], ["updated_at", "2015-02-20 18:07:48.792858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:07:48.803821"], ["updated_at", "2015-02-20 18:07:48.803821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (5.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (632.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.076332"], ["updated_at", "2015-02-20 18:09:05.076332"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.091185' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.105278' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:09:05.120746"], ["updated_at", "2015-02-20 18:09:05.120746"]] SQL (0.1ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.125367' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.138621' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 18:09:05.592706"], ["updated_at", "2015-02-20 18:09:05.592706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:09:05.622948"], ["updated_at", "2015-02-20 18:09:05.622948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:09:05.657860"], ["updated_at", "2015-02-20 18:09:05.657860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:09:05.689106"], ["updated_at", "2015-02-20 18:09:05.689106"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.691522' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:09:05.710123"], ["updated_at", "2015-02-20 18:09:05.710123"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.714378' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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", "[\"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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:09:05.728162' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) 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.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:09:05.799822"], ["updated_at", "2015-02-20 18:09:05.799822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:09:05.809683"], ["updated_at", "2015-02-20 18:09:05.809683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.817945"], ["updated_at", "2015-02-20 18:09:05.817945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (101.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (635.6ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.3ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:10:37.060796"], ["updated_at", "2015-02-20 18:10:37.060796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:10:37.559245"], ["updated_at", "2015-02-20 18:10:37.559245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.569727"], ["updated_at", "2015-02-20 18:10:37.569727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) 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 12ms (Views: 11.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.2ms) rollback transaction  (0.1ms) 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.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:10:37.687304"], ["updated_at", "2015-02-20 18:10:37.687304"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.696140' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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", "[\"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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.722974' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.733991"], ["updated_at", "2015-02-20 18:10:37.733991"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.740052' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:10:37.778707"], ["updated_at", "2015-02-20 18:10:37.778707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:10:37.869607"], ["updated_at", "2015-02-20 18:10:37.869607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.890556"], ["updated_at", "2015-02-20 18:10:37.890556"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.895343' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:10:37.911462"], ["updated_at", "2015-02-20 18:10:37.911462"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.914002' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:10:37.924466"], ["updated_at", "2015-02-20 18:10:37.924466"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.930461' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:10:37.940106' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (225.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 37ms (Views: 12.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.2ms) 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 5ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:12:11.126175"], ["updated_at", "2015-02-20 18:12:11.126175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:12:11.176026"], ["updated_at", "2015-02-20 18:12:11.176026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:12:11.210069"], ["updated_at", "2015-02-20 18:12:11.210069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.232192' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:12:11.245369"], ["updated_at", "2015-02-20 18:12:11.245369"]] SQL (0.3ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.251334' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:12:11.257757"], ["updated_at", "2015-02-20 18:12:11.257757"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.260330' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:12:11.275037"], ["updated_at", "2015-02-20 18:12:11.275037"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.279773' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:12:11.327357"], ["updated_at", "2015-02-20 18:12:11.327357"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.329634' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.344478"], ["updated_at", "2015-02-20 18:12:11.344478"]] SQL (0.2ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:12:11.348889' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:12:11.361529"], ["updated_at", "2015-02-20 18:12:11.361529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.370365"], ["updated_at", "2015-02-20 18:12:11.370365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:12:11.383020"], ["updated_at", "2015-02-20 18:12:11.383020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.7ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:13:42.406072"], ["updated_at", "2015-02-20 18:13:42.406072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:13:42.481787"], ["updated_at", "2015-02-20 18:13:42.481787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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.935904"], ["updated_at", "2015-02-20 18:13:42.935904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:13:43.000997"], ["updated_at", "2015-02-20 18:13:43.000997"]] SQL (0.3ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.009563' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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", "[\"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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.032216' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:13:43.066862"], ["updated_at", "2015-02-20 18:13:43.066862"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.074186' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:13:43.091479"], ["updated_at", "2015-02-20 18:13:43.091479"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.093277' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.100783' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:13:43.115119"], ["updated_at", "2015-02-20 18:13:43.115119"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:13:43.116904' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:13:43.149931"], ["updated_at", "2015-02-20 18:13:43.149931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:13:43.186982"], ["updated_at", "2015-02-20 18:13:43.186982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:13:43.237316"], ["updated_at", "2015-02-20 18:13:43.237316"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.3ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.099746"], ["updated_at", "2015-02-20 18:14:18.099746"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.113250' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.128014' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:14:18.142261"], ["updated_at", "2015-02-20 18:14:18.142261"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.146062' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.159341' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 18:14:18.653664"], ["updated_at", "2015-02-20 18:14:18.653664"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:14:18.691649"], ["updated_at", "2015-02-20 18:14:18.691649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:14:18.729834"], ["updated_at", "2015-02-20 18:14:18.729834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:14:18.765311"], ["updated_at", "2015-02-20 18:14:18.765311"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.767595' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:14:18.782272"], ["updated_at", "2015-02-20 18:14:18.782272"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:14:18.787107' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:14:18.865034"], ["updated_at", "2015-02-20 18:14:18.865034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.878152"], ["updated_at", "2015-02-20 18:14:18.878152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:14:18.886725"], ["updated_at", "2015-02-20 18:14:18.886725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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:15:22.074929"], ["updated_at", "2015-02-20 18:15:22.074929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:15:22.573035"], ["updated_at", "2015-02-20 18:15:22.573035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.585957"], ["updated_at", "2015-02-20 18:15:22.585957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) 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 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:15:22.690789"], ["updated_at", "2015-02-20 18:15:22.690789"]] SQL (0.3ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.699430' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.1ms) 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", "[\"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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.722163' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:15:22.754134"], ["updated_at", "2015-02-20 18:15:22.754134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:15:22.806563"], ["updated_at", "2015-02-20 18:15:22.806563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:15:22.840108"], ["updated_at", "2015-02-20 18:15:22.840108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.3ms) 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:15:22.863377"], ["updated_at", "2015-02-20 18:15:22.863377"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.866321' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:15:22.878610"], ["updated_at", "2015-02-20 18:15:22.878610"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.884263' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:15:22.897582"], ["updated_at", "2015-02-20 18:15:22.897582"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.900266' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:15:22.908597' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (635.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:16:35.610885"], ["updated_at", "2015-02-20 18:16:35.610885"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.627381' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.640500' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.656914"], ["updated_at", "2015-02-20 18:16:35.656914"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.661744' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:16:35.676715"], ["updated_at", "2015-02-20 18:16:35.676715"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.678688' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:16:35.708192"], ["updated_at", "2015-02-20 18:16:35.708192"]] SQL (0.4ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.716270' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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", "[\"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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:16:35.730369' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:16:36.184971"], ["updated_at", "2015-02-20 18:16:36.184971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:16:36.220320"], ["updated_at", "2015-02-20 18:16:36.220320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:16:36.259721"], ["updated_at", "2015-02-20 18:16:36.259721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.271170"], ["updated_at", "2015-02-20 18:16:36.271170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:16:36.282485"], ["updated_at", "2015-02-20 18:16:36.282485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:16:36.305976"], ["updated_at", "2015-02-20 18:16:36.305976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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:17:52.466313"], ["updated_at", "2015-02-20 18:17:52.466313"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:17:52.998725"], ["updated_at", "2015-02-20 18:17:52.998725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.012019"], ["updated_at", "2015-02-20 18:17:53.012019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) 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 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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: 1.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:17:53.125163"], ["updated_at", "2015-02-20 18:17:53.125163"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.133185' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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", "[\"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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.152715' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:17:53.213486"], ["updated_at", "2015-02-20 18:17:53.213486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:17:53.247669"], ["updated_at", "2015-02-20 18:17:53.247669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.295995"], ["updated_at", "2015-02-20 18:17:53.295995"]] SQL (0.2ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.299859' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:17:53.316438"], ["updated_at", "2015-02-20 18:17:53.316438"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.318931' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:17:53.328667"], ["updated_at", "2015-02-20 18:17:53.328667"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.333026' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:17:53.338083"], ["updated_at", "2015-02-20 18:17:53.338083"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:17:53.340288' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 36ms (Views: 11.4ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:18:02.763468"], ["updated_at", "2015-02-20 18:18:02.763468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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:18:02.806942"], ["updated_at", "2015-02-20 18:18:02.806942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:18:02.844488"], ["updated_at", "2015-02-20 18:18:02.844488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]] SQL (0.4ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.871986' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:18:02.885011"], ["updated_at", "2015-02-20 18:18:02.885011"]] SQL (0.3ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.892892' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:18:02.899258"], ["updated_at", "2015-02-20 18:18:02.899258"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.901533' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:18:02.914688"], ["updated_at", "2015-02-20 18:18:02.914688"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.919498' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:18:02.965073"], ["updated_at", "2015-02-20 18:18:02.965073"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.967952' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.980886"], ["updated_at", "2015-02-20 18:18:02.980886"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:18:02.986145' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.000157"], ["updated_at", "2015-02-20 18:18:03.000157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:18:03.011260"], ["updated_at", "2015-02-20 18:18:03.011260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:18:03.023508"], ["updated_at", "2015-02-20 18:18:03.023508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (635.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.265429"], ["updated_at", "2015-02-20 18:19:28.265429"]] SQL (0.3ms) 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"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.281351' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.295418' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:19:28.311121"], ["updated_at", "2015-02-20 18:19:28.311121"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.316840' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.331486' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 18:19:28.780921"], ["updated_at", "2015-02-20 18:19:28.780921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:19:28.818031"], ["updated_at", "2015-02-20 18:19:28.818031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:19:28.854421"], ["updated_at", "2015-02-20 18:19:28.854421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:19:28.884385"], ["updated_at", "2015-02-20 18:19:28.884385"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.886879' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:19:28.896680"], ["updated_at", "2015-02-20 18:19:28.896680"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:19:28.901346' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:19:28.973584"], ["updated_at", "2015-02-20 18:19:28.973584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.982865"], ["updated_at", "2015-02-20 18:19:28.982865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:19:28.995091"], ["updated_at", "2015-02-20 18:19:28.995091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 36ms (Views: 14.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:20:21.526435"], ["updated_at", "2015-02-20 18:20:21.526435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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.546608"], ["updated_at", "2015-02-20 18:20:21.546608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:20:21.559129"], ["updated_at", "2015-02-20 18:20:21.559129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 18:20:21.634137"], ["updated_at", "2015-02-20 18:20:21.634137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:20:21.668395"], ["updated_at", "2015-02-20 18:20:21.668395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:20:21.711917"], ["updated_at", "2015-02-20 18:20:21.711917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.2ms) 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:20:21.748568"], ["updated_at", "2015-02-20 18:20:21.748568"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.754440' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:20:21.768991"], ["updated_at", "2015-02-20 18:20:21.768991"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.773270' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:20:21.805610"], ["updated_at", "2015-02-20 18:20:21.805610"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.810225' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:20:21.821740"], ["updated_at", "2015-02-20 18:20:21.821740"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.823770' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:20:21.839592"], ["updated_at", "2015-02-20 18:20:21.839592"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.848165' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:20:21.853971"], ["updated_at", "2015-02-20 18:20:21.853971"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:20:21.856817' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 32ms (Views: 11.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 3ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:21:21.381371"], ["updated_at", "2015-02-20 18:21:21.381371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21:21.401360"], ["updated_at", "2015-02-20 18:21:21.401360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.411952"], ["updated_at", "2015-02-20 18:21:21.411952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 18:21:21.472589"], ["updated_at", "2015-02-20 18:21:21.472589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21:21.536784"], ["updated_at", "2015-02-20 18:21:21.536784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21:21.569717"], ["updated_at", "2015-02-20 18:21:21.569717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:21:21.599599"], ["updated_at", "2015-02-20 18:21:21.599599"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.605080' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21:21.619105"], ["updated_at", "2015-02-20 18:21:21.619105"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.634698' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21:21.652304"], ["updated_at", "2015-02-20 18:21:21.652304"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.658798' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:21:21.669562"], ["updated_at", "2015-02-20 18:21:21.669562"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.672400' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21:21.686240"], ["updated_at", "2015-02-20 18:21:21.686240"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.690084' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:21:21.695444"], ["updated_at", "2015-02-20 18:21:21.695444"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:21:21.697855' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:11.882625"], ["updated_at", "2015-02-20 18:22:11.882625"]] SQL (0.3ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:22:11.897843' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:22:11.910663' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:11.926141"], ["updated_at", "2015-02-20 18:22:11.926141"]] SQL (0.1ms) 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"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:22:11.930982' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:22:11.945456' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 18:22:12.406384"], ["updated_at", "2015-02-20 18:22:12.406384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:22:12.443081"], ["updated_at", "2015-02-20 18:22:12.443081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:22:12.485266"], ["updated_at", "2015-02-20 18:22:12.485266"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.3ms) 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:22:12.525388"], ["updated_at", "2015-02-20 18:22:12.525388"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:22:12.528123' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:22:12.550937"], ["updated_at", "2015-02-20 18:22:12.550937"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:22:12.553407' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) 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 36ms (Views: 34.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.7ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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.646665"], ["updated_at", "2015-02-20 18:22:12.646665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:22:12.660741"], ["updated_at", "2015-02-20 18:22:12.660741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:22:12.676322"], ["updated_at", "2015-02-20 18:22:12.676322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.7ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:23:31.732403"], ["updated_at", "2015-02-20 18:23:31.732403"]] SQL (0.4ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.748927' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.761891' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.780759"], ["updated_at", "2015-02-20 18:23:31.780759"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.785173' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:23:31.799265"], ["updated_at", "2015-02-20 18:23:31.799265"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.801105' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:23:31.828450"], ["updated_at", "2015-02-20 18:23:31.828450"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.834953' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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", "[\"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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:23:31.848158' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:23:32.358416"], ["updated_at", "2015-02-20 18:23:32.358416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:23:32.397424"], ["updated_at", "2015-02-20 18:23:32.397424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:23:32.411225"], ["updated_at", "2015-02-20 18:23:32.411225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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.419714"], ["updated_at", "2015-02-20 18:23:32.419714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.7ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:23:32.453073"], ["updated_at", "2015-02-20 18:23:32.453073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) 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: 12.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.7ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 7ms (Views: 5.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:24:53.966990"], ["updated_at", "2015-02-20 18:24:53.966990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:24:53.991421"], ["updated_at", "2015-02-20 18:24:53.991421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.001508"], ["updated_at", "2015-02-20 18:24:54.001508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 18:24:54.058578"], ["updated_at", "2015-02-20 18:24:54.058578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:24:54.116416"], ["updated_at", "2015-02-20 18:24:54.116416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:24:54.146904"], ["updated_at", "2015-02-20 18:24:54.146904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.2ms) 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:24:54.175468"], ["updated_at", "2015-02-20 18:24:54.175468"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.182285' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.202530"], ["updated_at", "2015-02-20 18:24:54.202530"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.209131' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]] SQL (0.2ms) 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:24:54.238061"], ["updated_at", "2015-02-20 18:24:54.238061"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.241085' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:24:54.249977"], ["updated_at", "2015-02-20 18:24:54.249977"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.254535' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:24:54.269671"], ["updated_at", "2015-02-20 18:24:54.269671"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.271806' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:24:54.287816' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (1.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:01.049873"], ["updated_at", "2015-02-20 18:25:01.049873"]] SQL (0.4ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.069729' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.085639' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.100891"], ["updated_at", "2015-02-20 18:25:01.100891"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.105152' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:25:01.121007"], ["updated_at", "2015-02-20 18:25:01.121007"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.123423' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:01.153350"], ["updated_at", "2015-02-20 18:25:01.153350"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.158363' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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", "[\"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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:01.174382' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:25:01.623336"], ["updated_at", "2015-02-20 18:25:01.623336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:01.656532"], ["updated_at", "2015-02-20 18:25:01.656532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:01.693288"], ["updated_at", "2015-02-20 18:25:01.693288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.715223"], ["updated_at", "2015-02-20 18:25:01.715223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:25:01.723140"], ["updated_at", "2015-02-20 18:25:01.723140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:25:01.745041"], ["updated_at", "2015-02-20 18:25:01.745041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (635.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 32ms (Views: 10.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:25:39.265627"], ["updated_at", "2015-02-20 18:25:39.265627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.286987"], ["updated_at", "2015-02-20 18:25:39.286987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:25:39.296288"], ["updated_at", "2015-02-20 18:25:39.296288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 18:25:39.371276"], ["updated_at", "2015-02-20 18:25:39.371276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:25:39.406005"], ["updated_at", "2015-02-20 18:25:39.406005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:25:39.437242"], ["updated_at", "2015-02-20 18:25:39.437242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.2ms) 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:25:39.467616"], ["updated_at", "2015-02-20 18:25:39.467616"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.474396' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.492434"], ["updated_at", "2015-02-20 18:25:39.492434"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.497302' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.3ms) 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:25:39.519512"], ["updated_at", "2015-02-20 18:25:39.519512"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.522322' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:39.531675"], ["updated_at", "2015-02-20 18:25:39.531675"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.537092' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.3ms) 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:25:39.550655"], ["updated_at", "2015-02-20 18:25:39.550655"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.553986' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:25:39.561374' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 34ms (Views: 12.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:26:16.633120"], ["updated_at", "2015-02-20 18:26:16.633120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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:16.678756"], ["updated_at", "2015-02-20 18:26:16.678756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:26:16.713319"], ["updated_at", "2015-02-20 18:26:16.713319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]] SQL (0.4ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.737759' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:16.750431"], ["updated_at", "2015-02-20 18:26:16.750431"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.754341' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:26:16.761848"], ["updated_at", "2015-02-20 18:26:16.761848"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.764113' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:16.776872"], ["updated_at", "2015-02-20 18:26:16.776872"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.780518' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:26:16.825087"], ["updated_at", "2015-02-20 18:26:16.825087"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.827182' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.838429"], ["updated_at", "2015-02-20 18:26:16.838429"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:16.842364' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:16.854408"], ["updated_at", "2015-02-20 18:26:16.854408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.865607"], ["updated_at", "2015-02-20 18:26:16.865607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:16.877262"], ["updated_at", "2015-02-20 18:26:16.877262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (579.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:26:48.944293"], ["updated_at", "2015-02-20 18:26:48.944293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:48.997772"], ["updated_at", "2015-02-20 18:26:48.997772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:26:49.046535"], ["updated_at", "2015-02-20 18:26:49.046535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.4ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.076677' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:49.094143"], ["updated_at", "2015-02-20 18:26:49.094143"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.098754' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:49.103609"], ["updated_at", "2015-02-20 18:26:49.103609"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.105726' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:49.118573"], ["updated_at", "2015-02-20 18:26:49.118573"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.122481' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]] SQL (0.4ms) 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:26:49.172006"], ["updated_at", "2015-02-20 18:26:49.172006"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.175867' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.187102"], ["updated_at", "2015-02-20 18:26:49.187102"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:26:49.191362' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.208340"], ["updated_at", "2015-02-20 18:26:49.208340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:49.219426"], ["updated_at", "2015-02-20 18:26:49.219426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:26:49.230284"], ["updated_at", "2015-02-20 18:26:49.230284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (631.4ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:27:53.900713"], ["updated_at", "2015-02-20 18:27:53.900713"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:27:53.917355' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:27:53.930496' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.4ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:53.946392"], ["updated_at", "2015-02-20 18:27:53.946392"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:27:53.951658' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:27:53.965431"], ["updated_at", "2015-02-20 18:27:53.965431"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:27:53.967323' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:27:53.996964"], ["updated_at", "2015-02-20 18:27:53.996964"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:27:54.001334' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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", "[\"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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:27:54.016301' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:27:54.467452"], ["updated_at", "2015-02-20 18:27:54.467452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:27:54.506281"], ["updated_at", "2015-02-20 18:27:54.506281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:27:54.545481"], ["updated_at", "2015-02-20 18:27:54.545481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.557675"], ["updated_at", "2015-02-20 18:27:54.557675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:27:54.568167"], ["updated_at", "2015-02-20 18:27:54.568167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:27:54.590890"], ["updated_at", "2015-02-20 18:27:54.590890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:28:55.473597"], ["updated_at", "2015-02-20 18:28:55.473597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.981634"], ["updated_at", "2015-02-20 18:28:55.981634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:28:55.991554"], ["updated_at", "2015-02-20 18:28:55.991554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:28:56.047065"], ["updated_at", "2015-02-20 18:28:56.047065"]] SQL (0.3ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.055760' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.2ms) 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", "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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.079200' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:28:56.107214"], ["updated_at", "2015-02-20 18:28:56.107214"]] SQL (0.2ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.111631' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:28:56.128754"], ["updated_at", "2015-02-20 18:28:56.128754"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.130805' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.137923' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:28:56.153699"], ["updated_at", "2015-02-20 18:28:56.153699"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:28:56.155843' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:28:56.181113"], ["updated_at", "2015-02-20 18:28:56.181113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:28:56.212633"], ["updated_at", "2015-02-20 18:28:56.212633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:28:56.261362"], ["updated_at", "2015-02-20 18:28:56.261362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (633.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:25.770303"], ["updated_at", "2015-02-20 18:29:25.770303"]] SQL (0.3ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:29:25.785560' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:29:25.799418' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:29:25.821006"], ["updated_at", "2015-02-20 18:29:25.821006"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:29:25.827363' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:29:25.843086' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 18:29:26.291703"], ["updated_at", "2015-02-20 18:29:26.291703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:29:26.324382"], ["updated_at", "2015-02-20 18:29:26.324382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:29:26.366988"], ["updated_at", "2015-02-20 18:29:26.366988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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", "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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:29:26.402973' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:29:26.414888"], ["updated_at", "2015-02-20 18:29:26.414888"]] SQL (0.2ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:29:26.419465' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.505382"], ["updated_at", "2015-02-20 18:29:26.505382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:29:26.516179"], ["updated_at", "2015-02-20 18:29:26.516179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:29:26.527367"], ["updated_at", "2015-02-20 18:29:26.527367"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:29:59.361577"], ["updated_at", "2015-02-20 18:29:59.361577"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:29:59.870102"], ["updated_at", "2015-02-20 18:29:59.870102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.883084"], ["updated_at", "2015-02-20 18:29:59.883084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) 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.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:59.984373"], ["updated_at", "2015-02-20 18:29:59.984373"]] SQL (0.2ms) 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"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:29:59.993000' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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", "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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.015162' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:30:00.085341"], ["updated_at", "2015-02-20 18:30:00.085341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:30:00.129276"], ["updated_at", "2015-02-20 18:30:00.129276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.181431"], ["updated_at", "2015-02-20 18:30:00.181431"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.186338' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:30:00.202492"], ["updated_at", "2015-02-20 18:30:00.202492"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.204556' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:30:00.215505"], ["updated_at", "2015-02-20 18:30:00.215505"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.219458' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:30:00.224690"], ["updated_at", "2015-02-20 18:30:00.224690"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:30:00.227329' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (1.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:28.812586"], ["updated_at", "2015-02-20 18:31:28.812586"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:28.828420' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:28.841832' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:28.858239"], ["updated_at", "2015-02-20 18:31:28.858239"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:28.863781' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:28.877573' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 18:31:29.333591"], ["updated_at", "2015-02-20 18:31:29.333591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:31:29.368283"], ["updated_at", "2015-02-20 18:31:29.368283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:31:29.404780"], ["updated_at", "2015-02-20 18:31:29.404780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.5ms) 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", "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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:29.446184' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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", "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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:29.465137' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) 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 25ms (Views: 23.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.535857"], ["updated_at", "2015-02-20 18:31:29.535857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:31:29.546258"], ["updated_at", "2015-02-20 18:31:29.546258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:31:29.559234"], ["updated_at", "2015-02-20 18:31:29.559234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (633.6ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:31:46.920630"], ["updated_at", "2015-02-20 18:31:46.920630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.979697"], ["updated_at", "2015-02-20 18:31:46.979697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:31:47.435351"], ["updated_at", "2015-02-20 18:31:47.435351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) 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.5ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.2ms) 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)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:47.556909"], ["updated_at", "2015-02-20 18:31:47.556909"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.564319' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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", "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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.582405' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.4ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:31:47.626099"], ["updated_at", "2015-02-20 18:31:47.626099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:31:47.656944"], ["updated_at", "2015-02-20 18:31:47.656944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.721175"], ["updated_at", "2015-02-20 18:31:47.721175"]] SQL (0.4ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.727235' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:31:47.742559"], ["updated_at", "2015-02-20 18:31:47.742559"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.744565' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:31:47.753743"], ["updated_at", "2015-02-20 18:31:47.753743"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.759135' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:31:47.763785"], ["updated_at", "2015-02-20 18:31:47.763785"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:31:47.766034' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (633.5ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:14.822408"], ["updated_at", "2015-02-20 18:32:14.822408"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.837677' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.852753' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:32:14.868815"], ["updated_at", "2015-02-20 18:32:14.868815"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.874971' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:32:14.890169"], ["updated_at", "2015-02-20 18:32:14.890169"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.893025' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:14.921980"], ["updated_at", "2015-02-20 18:32:14.921980"]] SQL (0.2ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.927447' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:32:14.941660"], ["updated_at", "2015-02-20 18:32:14.941660"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:14.948939' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:32:15.416916"], ["updated_at", "2015-02-20 18:32:15.416916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:32:15.451500"], ["updated_at", "2015-02-20 18:32:15.451500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.472747"], ["updated_at", "2015-02-20 18:32:15.472747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:32:15.481765"], ["updated_at", "2015-02-20 18:32:15.481765"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:15.510943"], ["updated_at", "2015-02-20 18:32:15.510943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:32:45.610420"], ["updated_at", "2015-02-20 18:32:45.610420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:32:46.109469"], ["updated_at", "2015-02-20 18:32:46.109469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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.118322"], ["updated_at", "2015-02-20 18:32:46.118322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.176399"], ["updated_at", "2015-02-20 18:32:46.176399"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.183764' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:32:46.203668"], ["updated_at", "2015-02-20 18:32:46.203668"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.209064' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.4ms) 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:32:46.238488"], ["updated_at", "2015-02-20 18:32:46.238488"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.242304' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:32:46.254872"], ["updated_at", "2015-02-20 18:32:46.254872"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.258656' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:32:46.264591"], ["updated_at", "2015-02-20 18:32:46.264591"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.266787' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:46.279682"], ["updated_at", "2015-02-20 18:32:46.279682"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:32:46.283318' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:46.316260"], ["updated_at", "2015-02-20 18:32:46.316260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:46.354039"], ["updated_at", "2015-02-20 18:32:46.354039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) 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 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 36ms (Views: 12.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:33:09.074584"], ["updated_at", "2015-02-20 18:33:09.074584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:09.097891"], ["updated_at", "2015-02-20 18:33:09.097891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.108254"], ["updated_at", "2015-02-20 18:33:09.108254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 18:33:09.178659"], ["updated_at", "2015-02-20 18:33:09.178659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:33:09.214988"], ["updated_at", "2015-02-20 18:33:09.214988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:33:09.245044"], ["updated_at", "2015-02-20 18:33:09.245044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.2ms) 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", "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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.277827' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:09.292037"], ["updated_at", "2015-02-20 18:33:09.292037"]] SQL (0.1ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.297321' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:09.326750"], ["updated_at", "2015-02-20 18:33:09.326750"]] SQL (0.2ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.330742' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:33:09.345027"], ["updated_at", "2015-02-20 18:33:09.345027"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.347368' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:33:09.359706"], ["updated_at", "2015-02-20 18:33:09.359706"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.363383' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:33:09.368765"], ["updated_at", "2015-02-20 18:33:09.368765"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:09.371854' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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.5ms) Completed 200 OK in 37ms (Views: 11.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:33:41.486667"], ["updated_at", "2015-02-20 18:33:41.486667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:41.509840"], ["updated_at", "2015-02-20 18:33:41.509840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.519641"], ["updated_at", "2015-02-20 18:33:41.519641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 18:33:41.575613"], ["updated_at", "2015-02-20 18:33:41.575613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:33:41.626398"], ["updated_at", "2015-02-20 18:33:41.626398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:33:41.657554"], ["updated_at", "2015-02-20 18:33:41.657554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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", "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"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.693911' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:41.709828"], ["updated_at", "2015-02-20 18:33:41.709828"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.714692' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:41.744649"], ["updated_at", "2015-02-20 18:33:41.744649"]] SQL (0.2ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.748510' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:33:41.760977"], ["updated_at", "2015-02-20 18:33:41.760977"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.763059' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:33:41.775757"], ["updated_at", "2015-02-20 18:33:41.775757"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.781838' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:33:41.788527"], ["updated_at", "2015-02-20 18:33:41.788527"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:41.791972' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (32.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (629.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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:33:48.881535"], ["updated_at", "2015-02-20 18:33:48.881535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.381736"], ["updated_at", "2015-02-20 18:33:49.381736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:49.391918"], ["updated_at", "2015-02-20 18:33:49.391918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) 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 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:49.505662"], ["updated_at", "2015-02-20 18:33:49.505662"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.513335' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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", "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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.532200' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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:49.575197"], ["updated_at", "2015-02-20 18:33:49.575197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:33:49.658534"], ["updated_at", "2015-02-20 18:33:49.658534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.684431"], ["updated_at", "2015-02-20 18:33:49.684431"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.691254' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:33:49.706428"], ["updated_at", "2015-02-20 18:33:49.706428"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.708541' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:33:49.716898"], ["updated_at", "2015-02-20 18:33:49.716898"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.721756' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:33:49.727216"], ["updated_at", "2015-02-20 18:33:49.727216"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:33:49.729383' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (635.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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.8ms) Completed 200 OK in 35ms (Views: 12.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.5ms) Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:35:20.040655"], ["updated_at", "2015-02-20 18:35:20.040655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:20.064095"], ["updated_at", "2015-02-20 18:35:20.064095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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.074893"], ["updated_at", "2015-02-20 18:35:20.074893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 18:35:20.134884"], ["updated_at", "2015-02-20 18:35:20.134884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:35:20.188029"], ["updated_at", "2015-02-20 18:35:20.188029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:35:20.224268"], ["updated_at", "2015-02-20 18:35:20.224268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]] SQL (0.2ms) 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", "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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.259462' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:35:20.273097"], ["updated_at", "2015-02-20 18:35:20.273097"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.276801' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "123411 Fake Street"], ["updated_at", "2015-02-20 18:35:20.293371"], ["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.295513' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:35:20.308152"], ["updated_at", "2015-02-20 18:35:20.308152"]] SQL (0.2ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.313512' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.1ms) 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:20.324933"], ["updated_at", "2015-02-20 18:35:20.324933"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.326751' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:35:20.339389"], ["updated_at", "2015-02-20 18:35:20.339389"]] SQL (0.1ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.343264' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:35:20.348163"], ["updated_at", "2015-02-20 18:35:20.348163"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:20.351354' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:35:42.928689"], ["updated_at", "2015-02-20 18:35:42.928689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.446749"], ["updated_at", "2015-02-20 18:35:43.446749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:43.457082"], ["updated_at", "2015-02-20 18:35:43.457082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.515805"], ["updated_at", "2015-02-20 18:35:43.515805"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.525153' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "12347 Fake Street"], ["updated_at", "2015-02-20 18:35:43.534892"], ["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.536887' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (2.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:35:43.553107"], ["updated_at", "2015-02-20 18:35:43.553107"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.556915' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.2ms) 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:35:43.584733"], ["updated_at", "2015-02-20 18:35:43.584733"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.586643' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:35:43.598212"], ["updated_at", "2015-02-20 18:35:43.598212"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.601737' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:43.606241"], ["updated_at", "2015-02-20 18:35:43.606241"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.610123' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:43.621949"], ["updated_at", "2015-02-20 18:35:43.621949"]] SQL (0.1ms) 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"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:43.625490' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:43.656553"], ["updated_at", "2015-02-20 18:35:43.656553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:43.691467"], ["updated_at", "2015-02-20 18:35:43.691467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (98.6ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (628.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.3ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.6ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) 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:35:57.240107"], ["updated_at", "2015-02-20 18:35:57.240107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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:57.802369"], ["updated_at", "2015-02-20 18:35:57.802369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (1.2ms) 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.814916"], ["updated_at", "2015-02-20 18:35:57.814916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.880385"], ["updated_at", "2015-02-20 18:35:57.880385"]] SQL (0.2ms) 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"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.888273' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "12347 Fake Street"], ["updated_at", "2015-02-20 18:35:57.900549"], ["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.902768' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:35:57.916540"], ["updated_at", "2015-02-20 18:35:57.916540"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.921816' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]] SQL (0.3ms) 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:35:57.952836"], ["updated_at", "2015-02-20 18:35:57.952836"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.955231' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:35:57.970859"], ["updated_at", "2015-02-20 18:35:57.970859"]] SQL (0.3ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.976179' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:57.981882"], ["updated_at", "2015-02-20 18:35:57.981882"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:57.984249' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:57.997331"], ["updated_at", "2015-02-20 18:35:57.997331"]] SQL (0.2ms) 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"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 18:35:58.001844' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:58.034165"], ["updated_at", "2015-02-20 18:35:58.034165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:58.074596"], ["updated_at", "2015-02-20 18:35:58.074596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) 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.8ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction 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)  (0.1ms) rollback transaction  (0.1ms) 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 3ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 20:33:08.754713"], ["updated_at", "2015-02-20 20:33:08.754713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:08.770268"], ["updated_at", "2015-02-20 20:33:08.770268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.203229"], ["updated_at", "2015-02-20 20:33:09.203229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.210288"], ["updated_at", "2015-02-20 20:33:09.210288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.215605"], ["updated_at", "2015-02-20 20:33:09.215605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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 20:33:09.218257"], ["updated_at", "2015-02-20 20:33:09.218257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.319090"], ["updated_at", "2015-02-20 20:33:09.319090"]] SQL (0.2ms) 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 20:33:09.320935"], ["updated_at", "2015-02-20 20:33:09.320935"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:33:09.326183' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.341626"], ["updated_at", "2015-02-20 20:33:09.341626"]] SQL (0.1ms) 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", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 20:33:09.343388"], ["updated_at", "2015-02-20 20:33:09.343388"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:33:09.345593' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "12348 Fake Street"], ["updated_at", "2015-02-20 20:33:09.352661"], ["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:33:09.355362' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.402341"], ["updated_at", "2015-02-20 20:33:09.402341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:33:09.421659"], ["updated_at", "2015-02-20 20:33:09.421659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:33:09.451338"], ["updated_at", "2015-02-20 20:33:09.451338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:33:09.457543"], ["updated_at", "2015-02-20 20:33:09.457543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.482582"], ["updated_at", "2015-02-20 20:33:09.482582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.492971"], ["updated_at", "2015-02-20 20:33:09.492971"]] SQL (0.2ms) 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 20:33:09.495347"], ["updated_at", "2015-02-20 20:33:09.495347"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:33:09.497591' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.512388"], ["updated_at", "2015-02-20 20:33:09.512388"]] SQL (0.2ms) 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 20:33:09.514817"], ["updated_at", "2015-02-20 20:33:09.514817"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:33:09.517248' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:33:09.525552"], ["updated_at", "2015-02-20 20:33:09.525552"]] SQL (0.1ms) 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 20:33:09.527592"], ["updated_at", "2015-02-20 20:33:09.527592"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:33:09.529821' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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 20:33:09.536022"], ["updated_at", "2015-02-20 20:33:09.536022"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:33:09.539641' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 34ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 20:34:00.141133"], ["updated_at", "2015-02-20 20:34:00.141133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.157432"], ["updated_at", "2015-02-20 20:34:00.157432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.162734"], ["updated_at", "2015-02-20 20:34:00.162734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.167635"], ["updated_at", "2015-02-20 20:34:00.167635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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 20:34:00.170312"], ["updated_at", "2015-02-20 20:34:00.170312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.177074"], ["updated_at", "2015-02-20 20:34:00.177074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.247852"], ["updated_at", "2015-02-20 20:34:00.247852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 20:34:00.253548"], ["updated_at", "2015-02-20 20:34:00.253548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:00.281356"], ["updated_at", "2015-02-20 20:34:00.281356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.320316"], ["updated_at", "2015-02-20 20:34:00.320316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:00.325938"], ["updated_at", "2015-02-20 20:34:00.325938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:00.352618"], ["updated_at", "2015-02-20 20:34:00.352618"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 20:34:00.354883"], ["updated_at", "2015-02-20 20:34:00.354883"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:00.360165' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.373417"], ["updated_at", "2015-02-20 20:34:00.373417"]] SQL (0.1ms) 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 20:34:00.375150"], ["updated_at", "2015-02-20 20:34:00.375150"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:00.378040' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "123411 Fake Street"], ["updated_at", "2015-02-20 20:34:00.384498"], ["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:00.386694' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.397422"], ["updated_at", "2015-02-20 20:34:00.397422"]] SQL (0.2ms) 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 20:34:00.399200"], ["updated_at", "2015-02-20 20:34:00.399200"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:00.401080' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.412306"], ["updated_at", "2015-02-20 20:34:00.412306"]] SQL (0.3ms) 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 20:34:00.414395"], ["updated_at", "2015-02-20 20:34:00.414395"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:00.417908' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:00.433762"], ["updated_at", "2015-02-20 20:34:00.433762"]] SQL (0.1ms) 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 20:34:00.435900"], ["updated_at", "2015-02-20 20:34:00.435900"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:00.438050' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:00.443658"], ["updated_at", "2015-02-20 20:34:00.443658"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:00.445878' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 33ms (Views: 12.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 4ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 20:34:16.394642"], ["updated_at", "2015-02-20 20:34:16.394642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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 20:34:16.408655"], ["updated_at", "2015-02-20 20:34:16.408655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:16.443947"], ["updated_at", "2015-02-20 20:34:16.443947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.467992"], ["updated_at", "2015-02-20 20:34:16.467992"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:16.474618"], ["updated_at", "2015-02-20 20:34:16.474618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:16.499778"], ["updated_at", "2015-02-20 20:34:16.499778"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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 20:34:16.501953"], ["updated_at", "2015-02-20 20:34:16.501953"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:16.507245' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.524007"], ["updated_at", "2015-02-20 20:34:16.524007"]] SQL (0.1ms) 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 20:34:16.525975"], ["updated_at", "2015-02-20 20:34:16.525975"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:16.528760' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 20:34:16.536114"], ["updated_at", "2015-02-20 20:34:16.536114"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:16.539520' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.4ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.556949"], ["updated_at", "2015-02-20 20:34:16.556949"]] SQL (0.2ms) 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 20:34:16.558911"], ["updated_at", "2015-02-20 20:34:16.558911"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:16.561265' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.592257"], ["updated_at", "2015-02-20 20:34:16.592257"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 20:34:16.594098"], ["updated_at", "2015-02-20 20:34:16.594098"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:16.595990' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "123410 Fake Street"], ["updated_at", "2015-02-20 20:34:16.601779"], ["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:16.603775' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.615509"], ["updated_at", "2015-02-20 20:34:16.615509"]] SQL (0.1ms) 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", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 20:34:16.618026"], ["updated_at", "2015-02-20 20:34:16.618026"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:16.620440' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.626326"], ["updated_at", "2015-02-20 20:34:16.626326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.631387"], ["updated_at", "2015-02-20 20:34:16.631387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.637169"], ["updated_at", "2015-02-20 20:34:16.637169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.639748"], ["updated_at", "2015-02-20 20:34:16.639748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:16.646116"], ["updated_at", "2015-02-20 20:34:16.646116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:16.652075"], ["updated_at", "2015-02-20 20:34:16.652075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 (1.2ms) Completed 200 OK in 59ms (Views: 20.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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 20:34:31.632191"], ["updated_at", "2015-02-20 20:34:31.632191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.648317"], ["updated_at", "2015-02-20 20:34:31.648317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.653480"], ["updated_at", "2015-02-20 20:34:31.653480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.658147"], ["updated_at", "2015-02-20 20:34:31.658147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.663459"], ["updated_at", "2015-02-20 20:34:31.663459"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 20:34:31.665817"], ["updated_at", "2015-02-20 20:34:31.665817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.719263"], ["updated_at", "2015-02-20 20:34:31.719263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:31.724653"], ["updated_at", "2015-02-20 20:34:31.724653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.756120"], ["updated_at", "2015-02-20 20:34:31.756120"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:31.762408"], ["updated_at", "2015-02-20 20:34:31.762408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.818093"], ["updated_at", "2015-02-20 20:34:31.818093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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 20:34:31.848458"], ["updated_at", "2015-02-20 20:34:31.848458"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-20 20:34:31.851982"], ["updated_at", "2015-02-20 20:34:31.851982"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:31.857738' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.871810"], ["updated_at", "2015-02-20 20:34:31.871810"]] SQL (0.1ms) 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 20:34:31.873598"], ["updated_at", "2015-02-20 20:34:31.873598"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:31.875814' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "123411 Fake Street"], ["updated_at", "2015-02-20 20:34:31.881809"], ["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:31.884051' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.894372"], ["updated_at", "2015-02-20 20:34:31.894372"]] SQL (0.2ms) 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 20:34:31.896478"], ["updated_at", "2015-02-20 20:34:31.896478"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:31.898390' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.908002"], ["updated_at", "2015-02-20 20:34:31.908002"]] SQL (0.1ms) 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 20:34:31.910644"], ["updated_at", "2015-02-20 20:34:31.910644"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:31.912777' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 20:34:31.925116"], ["updated_at", "2015-02-20 20:34:31.925116"]] SQL (0.2ms) 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 20:34:31.926992"], ["updated_at", "2015-02-20 20:34:31.926992"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:31.928998' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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 20:34:31.934179"], ["updated_at", "2015-02-20 20:34:31.934179"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-20 20:34:31.937969' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.5ms) CREATE 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)   (0.6ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:28:50.274951"], ["updated_at", "2015-02-23 20:28:50.274951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:50.778373"], ["updated_at", "2015-02-23 20:28:50.778373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:50.783817"], ["updated_at", "2015-02-23 20:28:50.783817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:50.791508"], ["updated_at", "2015-02-23 20:28:50.791508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:28:50.796679"], ["updated_at", "2015-02-23 20:28:50.796679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:28:50.799958"], ["updated_at", "2015-02-23 20:28:50.799958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) 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 15ms (Views: 13.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:50.917667"], ["updated_at", "2015-02-23 20:28:50.917667"]] SQL (0.3ms) 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-23 20:28:50.919969"], ["updated_at", "2015-02-23 20:28:50.919969"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:28:50.926906' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:50.940942"], ["updated_at", "2015-02-23 20:28:50.940942"]] SQL (0.1ms) 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", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:28:50.942962"], ["updated_at", "2015-02-23 20:28:50.942962"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:28:50.944773' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:50.979398"], ["updated_at", "2015-02-23 20:28:50.979398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:28:50.985540"], ["updated_at", "2015-02-23 20:28:50.985540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:51.013281"], ["updated_at", "2015-02-23 20:28:51.013281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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-23 20:28:51.018991"], ["updated_at", "2015-02-23 20:28:51.018991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:51.066267"], ["updated_at", "2015-02-23 20:28:51.066267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:51.086804"], ["updated_at", "2015-02-23 20:28:51.086804"]] SQL (0.2ms) 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-23 20:28:51.089008"], ["updated_at", "2015-02-23 20:28:51.089008"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:28:51.091650' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:28:51.103999"], ["updated_at", "2015-02-23 20:28:51.103999"]] SQL (0.1ms) 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-23 20:28:51.106098"], ["updated_at", "2015-02-23 20:28:51.106098"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:28:51.108182' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:28:51.116626"], ["updated_at", "2015-02-23 20:28:51.116626"]] SQL (0.2ms) 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-23 20:28:51.119227"], ["updated_at", "2015-02-23 20:28:51.119227"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:28:51.121263' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:28:51.126700"], ["updated_at", "2015-02-23 20:28:51.126700"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:28:51.129875' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:29:04.065552"], ["updated_at", "2015-02-23 20:29:04.065552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.125894"], ["updated_at", "2015-02-23 20:29:04.125894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:29:04.588044"], ["updated_at", "2015-02-23 20:29:04.588044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.594228"], ["updated_at", "2015-02-23 20:29:04.594228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.599580"], ["updated_at", "2015-02-23 20:29:04.599580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) 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-23 20:29:04.602317"], ["updated_at", "2015-02-23 20:29:04.602317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) 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 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.711704"], ["updated_at", "2015-02-23 20:29:04.711704"]] SQL (0.2ms) 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-23 20:29:04.714082"], ["updated_at", "2015-02-23 20:29:04.714082"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:29:04.719481' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.738235"], ["updated_at", "2015-02-23 20:29:04.738235"]] SQL (0.1ms) 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", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:29:04.740940"], ["updated_at", "2015-02-23 20:29:04.740940"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:29:04.743082' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.779146"], ["updated_at", "2015-02-23 20:29:04.779146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:29:04.784953"], ["updated_at", "2015-02-23 20:29:04.784953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.831316"], ["updated_at", "2015-02-23 20:29:04.831316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:29:04.837651"], ["updated_at", "2015-02-23 20:29:04.837651"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.867531"], ["updated_at", "2015-02-23 20:29:04.867531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.890099"], ["updated_at", "2015-02-23 20:29:04.890099"]] SQL (0.2ms) 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-23 20:29:04.892736"], ["updated_at", "2015-02-23 20:29:04.892736"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:29:04.895224' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:29:04.908989"], ["updated_at", "2015-02-23 20:29:04.908989"]] SQL (0.2ms) 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-23 20:29:04.911436"], ["updated_at", "2015-02-23 20:29:04.911436"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:29:04.914301' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:29:04.926766"], ["updated_at", "2015-02-23 20:29:04.926766"]] SQL (0.2ms) 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-23 20:29:04.929661"], ["updated_at", "2015-02-23 20:29:04.929661"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:29:04.932884' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:29:04.938134"], ["updated_at", "2015-02-23 20:29:04.938134"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:29:04.941241' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.2ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (629.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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 36ms (Views: 12.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:30:37.229359"], ["updated_at", "2015-02-23 20:30:37.229359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.247257"], ["updated_at", "2015-02-23 20:30:37.247257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.252202"], ["updated_at", "2015-02-23 20:30:37.252202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.257482"], ["updated_at", "2015-02-23 20:30:37.257482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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-23 20:30:37.260421"], ["updated_at", "2015-02-23 20:30:37.260421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.267252"], ["updated_at", "2015-02-23 20:30:37.267252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.334855"], ["updated_at", "2015-02-23 20:30:37.334855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:30:37.340551"], ["updated_at", "2015-02-23 20:30:37.340551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.367864"], ["updated_at", "2015-02-23 20:30:37.367864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.395752"], ["updated_at", "2015-02-23 20:30:37.395752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:30:37.401322"], ["updated_at", "2015-02-23 20:30:37.401322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:30:37.427474"], ["updated_at", "2015-02-23 20:30:37.427474"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:30:37.429836"], ["updated_at", "2015-02-23 20:30:37.429836"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:30:37.434910' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:30:37.453677"], ["updated_at", "2015-02-23 20:30:37.453677"]] SQL (0.2ms) 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-23 20:30:37.457570"], ["updated_at", "2015-02-23 20:30:37.457570"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:30:37.460787' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.490861"], ["updated_at", "2015-02-23 20:30:37.490861"]] SQL (0.3ms) 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-23 20:30:37.493371"], ["updated_at", "2015-02-23 20:30:37.493371"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:30:37.496653' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.504736"], ["updated_at", "2015-02-23 20:30:37.504736"]] SQL (0.2ms) 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-23 20:30:37.506954"], ["updated_at", "2015-02-23 20:30:37.506954"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:30:37.509286' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:30:37.522306"], ["updated_at", "2015-02-23 20:30:37.522306"]] SQL (0.1ms) 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-23 20:30:37.524538"], ["updated_at", "2015-02-23 20:30:37.524538"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:30:37.526623' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:30:37.533408"], ["updated_at", "2015-02-23 20:30:37.533408"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:30:37.536141' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (732.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:26.998581"], ["updated_at", "2015-02-23 20:33:26.998581"]] SQL (0.2ms) 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-23 20:33:27.003799"], ["updated_at", "2015-02-23 20:33:27.003799"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:33:27.015685' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:33:27.026803"], ["updated_at", "2015-02-23 20:33:27.026803"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:33:27.031003' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:27.046998"], ["updated_at", "2015-02-23 20:33:27.046998"]] SQL (0.1ms) 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-23 20:33:27.049392"], ["updated_at", "2015-02-23 20:33:27.049392"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:33:27.051920' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:27.061521"], ["updated_at", "2015-02-23 20:33:27.061521"]] SQL (0.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:33:27.063661"], ["updated_at", "2015-02-23 20:33:27.063661"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:33:27.065611' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:27.542527"], ["updated_at", "2015-02-23 20:33:27.542527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:27.573954"], ["updated_at", "2015-02-23 20:33:27.573954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:33:27.580813"], ["updated_at", "2015-02-23 20:33:27.580813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:27.612355"], ["updated_at", "2015-02-23 20:33:27.612355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:27.618550"], ["updated_at", "2015-02-23 20:33:27.618550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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 14ms (Views: 11.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:27.706801"], ["updated_at", "2015-02-23 20:33:27.706801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:27.726827"], ["updated_at", "2015-02-23 20:33:27.726827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:27.730484"], ["updated_at", "2015-02-23 20:33:27.730484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:33:27.736976"], ["updated_at", "2015-02-23 20:33:27.736976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:33:27.743709"], ["updated_at", "2015-02-23 20:33:27.743709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:33:27.750290"], ["updated_at", "2015-02-23 20:33:27.750290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:33:49.531399"], ["updated_at", "2015-02-23 20:33:49.531399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:50.028404"], ["updated_at", "2015-02-23 20:33:50.028404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:50.035143"], ["updated_at", "2015-02-23 20:33:50.035143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:50.040502"], ["updated_at", "2015-02-23 20:33:50.040502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:50.045840"], ["updated_at", "2015-02-23 20:33:50.045840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:33:50.048772"], ["updated_at", "2015-02-23 20:33:50.048772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) 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 12ms (Views: 10.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:33:50.200308"], ["updated_at", "2015-02-23 20:33:50.200308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:50.209474"], ["updated_at", "2015-02-23 20:33:50.209474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:50.238067"], ["updated_at", "2015-02-23 20:33:50.238067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:50.244922"], ["updated_at", "2015-02-23 20:33:50.244922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:50.273067"], ["updated_at", "2015-02-23 20:33:50.273067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:33:50.288753"], ["updated_at", "2015-02-23 20:33:50.288753"]] SQL (0.3ms) 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-23 20:33:50.291602"], ["updated_at", "2015-02-23 20:33:50.291602"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:33:50.298723' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:50.316021"], ["updated_at", "2015-02-23 20:33:50.316021"]] SQL (0.1ms) 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-23 20:33:50.318196"], ["updated_at", "2015-02-23 20:33:50.318196"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:33:50.320169' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:33:50.342472"], ["updated_at", "2015-02-23 20:33:50.342472"]] SQL (0.1ms) 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-23 20:33:50.344442"], ["updated_at", "2015-02-23 20:33:50.344442"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:33:50.346370' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:33:50.351136"], ["updated_at", "2015-02-23 20:33:50.351136"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:33:50.353845' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.5ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 38ms (Views: 12.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:34:24.125895"], ["updated_at", "2015-02-23 20:34:24.125895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:34:24.160800"], ["updated_at", "2015-02-23 20:34:24.160800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:34:24.168471"], ["updated_at", "2015-02-23 20:34:24.168471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:34:24.219446"], ["updated_at", "2015-02-23 20:34:24.219446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:34:24.228521"], ["updated_at", "2015-02-23 20:34:24.228521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) 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-23 20:34:24.247272"], ["updated_at", "2015-02-23 20:34:24.247272"]] SQL (0.4ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:34:24.253657"], ["updated_at", "2015-02-23 20:34:24.253657"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:34:24.264073' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:34:24.281456"], ["updated_at", "2015-02-23 20:34:24.281456"]] SQL (0.2ms) 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-23 20:34:24.284395"], ["updated_at", "2015-02-23 20:34:24.284395"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:34:24.286749' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:34:24.292519"], ["updated_at", "2015-02-23 20:34:24.292519"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:34:24.294958' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:34:24.309588"], ["updated_at", "2015-02-23 20:34:24.309588"]] SQL (0.2ms) 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-23 20:34:24.312047"], ["updated_at", "2015-02-23 20:34:24.312047"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:34:24.314378' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:34:24.361031"], ["updated_at", "2015-02-23 20:34:24.361031"]] SQL (0.3ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:34:24.364305"], ["updated_at", "2015-02-23 20:34:24.364305"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:34:24.366916' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:34:24.388656"], ["updated_at", "2015-02-23 20:34:24.388656"]] SQL (0.1ms) 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", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:34:24.391542"], ["updated_at", "2015-02-23 20:34:24.391542"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:34:24.394726' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:34:24.401972"], ["updated_at", "2015-02-23 20:34:24.401972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:34:24.408562"], ["updated_at", "2015-02-23 20:34:24.408562"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:34:24.412968"], ["updated_at", "2015-02-23 20:34:24.412968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:34:24.420143"], ["updated_at", "2015-02-23 20:34:24.420143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:34:24.426942"], ["updated_at", "2015-02-23 20:34:24.426942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:34:24.432397"], ["updated_at", "2015-02-23 20:34:24.432397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:35:07.241100"], ["updated_at", "2015-02-23 20:35:07.241100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:35:07.278945"], ["updated_at", "2015-02-23 20:35:07.278945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:35:07.284669"], ["updated_at", "2015-02-23 20:35:07.284669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:35:07.318473"], ["updated_at", "2015-02-23 20:35:07.318473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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-23 20:35:07.326463"], ["updated_at", "2015-02-23 20:35:07.326463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:35:07.340872"], ["updated_at", "2015-02-23 20:35:07.340872"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:35:07.343501"], ["updated_at", "2015-02-23 20:35:07.343501"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:35:07.349270' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:35:07.364635"], ["updated_at", "2015-02-23 20:35:07.364635"]] SQL (0.2ms) 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-23 20:35:07.366806"], ["updated_at", "2015-02-23 20:35:07.366806"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:35:07.369986' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:35:07.376403"], ["updated_at", "2015-02-23 20:35:07.376403"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:35:07.379147' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:35:07.394739"], ["updated_at", "2015-02-23 20:35:07.394739"]] SQL (0.1ms) 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-23 20:35:07.396971"], ["updated_at", "2015-02-23 20:35:07.396971"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:35:07.399019' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:35:07.429745"], ["updated_at", "2015-02-23 20:35:07.429745"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:35:07.431920"], ["updated_at", "2015-02-23 20:35:07.431920"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:35:07.433964' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:35:07.446275"], ["updated_at", "2015-02-23 20:35:07.446275"]] SQL (0.2ms) 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-23 20:35:07.449404"], ["updated_at", "2015-02-23 20:35:07.449404"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:35:07.451653' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (634.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.4ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:02.155255"], ["updated_at", "2015-02-23 20:36:02.155255"]] SQL (0.2ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:36:02.161539"], ["updated_at", "2015-02-23 20:36:02.161539"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:02.171324' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:36:02.186755"], ["updated_at", "2015-02-23 20:36:02.186755"]] SQL (0.1ms) 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", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:36:02.188899"], ["updated_at", "2015-02-23 20:36:02.188899"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:02.191905' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:36:02.230561"], ["updated_at", "2015-02-23 20:36:02.230561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:36:02.238462"], ["updated_at", "2015-02-23 20:36:02.238462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:02.794288"], ["updated_at", "2015-02-23 20:36:02.794288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:02.825266"], ["updated_at", "2015-02-23 20:36:02.825266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:36:02.831207"], ["updated_at", "2015-02-23 20:36:02.831207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:02.842065"], ["updated_at", "2015-02-23 20:36:02.842065"]] SQL (0.3ms) 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-23 20:36:02.845987"], ["updated_at", "2015-02-23 20:36:02.845987"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:02.849018' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:36:02.862142"], ["updated_at", "2015-02-23 20:36:02.862142"]] SQL (0.1ms) 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-23 20:36:02.864126"], ["updated_at", "2015-02-23 20:36:02.864126"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:02.866592' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:02.878256"], ["updated_at", "2015-02-23 20:36:02.878256"]] SQL (0.2ms) 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-23 20:36:02.881729"], ["updated_at", "2015-02-23 20:36:02.881729"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:02.884617' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:02.891911"], ["updated_at", "2015-02-23 20:36:02.891911"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:02.894676' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (1.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (635.6ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:15.651490"], ["updated_at", "2015-02-23 20:36:15.651490"]] SQL (0.3ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:36:15.656825"], ["updated_at", "2015-02-23 20:36:15.656825"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:15.665400' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:36:15.682736"], ["updated_at", "2015-02-23 20:36:15.682736"]] SQL (0.1ms) 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", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:36:15.684780"], ["updated_at", "2015-02-23 20:36:15.684780"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:15.686683' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:36:15.723280"], ["updated_at", "2015-02-23 20:36:15.723280"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:36:15.725831"], ["updated_at", "2015-02-23 20:36:15.725831"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:15.728932' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:36:15.743853"], ["updated_at", "2015-02-23 20:36:15.743853"]] SQL (0.2ms) 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-23 20:36:15.745885"], ["updated_at", "2015-02-23 20:36:15.745885"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:15.747743' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:36:15.753313"], ["updated_at", "2015-02-23 20:36:15.753313"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:15.756461' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:36:15.769340"], ["updated_at", "2015-02-23 20:36:15.769340"]] SQL (0.1ms) 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-23 20:36:15.771306"], ["updated_at", "2015-02-23 20:36:15.771306"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:36:15.773470' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:15.802612"], ["updated_at", "2015-02-23 20:36:15.802612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:15.810491"], ["updated_at", "2015-02-23 20:36:15.810491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:16.297736"], ["updated_at", "2015-02-23 20:36:16.297736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:36:16.330408"], ["updated_at", "2015-02-23 20:36:16.330408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:36:16.339336"], ["updated_at", "2015-02-23 20:36:16.339336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:40:19.965553"], ["updated_at", "2015-02-23 20:40:19.965553"]] SQL (0.3ms) 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-23 20:40:19.972109"], ["updated_at", "2015-02-23 20:40:19.972109"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:19.985553' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:40:19.996203"], ["updated_at", "2015-02-23 20:40:19.996203"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:19.999365' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.4ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:20.016124"], ["updated_at", "2015-02-23 20:40:20.016124"]] SQL (0.3ms) 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-23 20:40:20.018112"], ["updated_at", "2015-02-23 20:40:20.018112"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:20.022217' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:20.035636"], ["updated_at", "2015-02-23 20:40:20.035636"]] SQL (0.2ms) 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-23 20:40:20.038512"], ["updated_at", "2015-02-23 20:40:20.038512"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:20.041866' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:20.071618"], ["updated_at", "2015-02-23 20:40:20.071618"]] SQL (0.2ms) 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-23 20:40:20.074566"], ["updated_at", "2015-02-23 20:40:20.074566"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:20.076882' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:40:20.100111"], ["updated_at", "2015-02-23 20:40:20.100111"]] SQL (0.1ms) 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-23 20:40:20.103298"], ["updated_at", "2015-02-23 20:40:20.103298"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:20.105270' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:40:20.131409"], ["updated_at", "2015-02-23 20:40:20.131409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:40:20.139189"], ["updated_at", "2015-02-23 20:40:20.139189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:20.646369"], ["updated_at", "2015-02-23 20:40:20.646369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:20.670044"], ["updated_at", "2015-02-23 20:40:20.670044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:40:20.676647"], ["updated_at", "2015-02-23 20:40:20.676647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.8ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:40:34.948129"], ["updated_at", "2015-02-23 20:40:34.948129"]] SQL (0.3ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:40:34.953091"], ["updated_at", "2015-02-23 20:40:34.953091"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:34.965129' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:34.982330"], ["updated_at", "2015-02-23 20:40:34.982330"]] SQL (0.2ms) 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", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:40:34.984417"], ["updated_at", "2015-02-23 20:40:34.984417"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:34.986943' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:40:35.514777"], ["updated_at", "2015-02-23 20:40:35.514777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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-23 20:40:35.522216"], ["updated_at", "2015-02-23 20:40:35.522216"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:35.575344"], ["updated_at", "2015-02-23 20:40:35.575344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:35.581295"], ["updated_at", "2015-02-23 20:40:35.581295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:35.610788"], ["updated_at", "2015-02-23 20:40:35.610788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:40:35.621944"], ["updated_at", "2015-02-23 20:40:35.621944"]] SQL (0.3ms) 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-23 20:40:35.625468"], ["updated_at", "2015-02-23 20:40:35.625468"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:35.628830' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:35.644664"], ["updated_at", "2015-02-23 20:40:35.644664"]] SQL (0.2ms) 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-23 20:40:35.646721"], ["updated_at", "2015-02-23 20:40:35.646721"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:35.649147' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:40:35.658770"], ["updated_at", "2015-02-23 20:40:35.658770"]] SQL (0.1ms) 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-23 20:40:35.660874"], ["updated_at", "2015-02-23 20:40:35.660874"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:35.663099' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:40:35.668485"], ["updated_at", "2015-02-23 20:40:35.668485"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:40:35.670701' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:42:43.500469"], ["updated_at", "2015-02-23 20:42:43.500469"]] SQL (0.5ms) 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-23 20:42:43.505522"], ["updated_at", "2015-02-23 20:42:43.505522"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:42:43.519654' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:42:43.529675"], ["updated_at", "2015-02-23 20:42:43.529675"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:42:43.533279' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:42:43.549658"], ["updated_at", "2015-02-23 20:42:43.549658"]] SQL (0.2ms) 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-23 20:42:43.551978"], ["updated_at", "2015-02-23 20:42:43.551978"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:42:43.554623' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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-23 20:42:43.567033"], ["updated_at", "2015-02-23 20:42:43.567033"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:42:43.571044"], ["updated_at", "2015-02-23 20:42:43.571044"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:42:43.573740' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:42:44.107561"], ["updated_at", "2015-02-23 20:42:44.107561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:42:44.130563"], ["updated_at", "2015-02-23 20:42:44.130563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:42:44.139013"], ["updated_at", "2015-02-23 20:42:44.139013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:42:44.168093"], ["updated_at", "2015-02-23 20:42:44.168093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:42:44.176212"], ["updated_at", "2015-02-23 20:42:44.176212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:42:44.209450"], ["updated_at", "2015-02-23 20:42:44.209450"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:42:44.212512"], ["updated_at", "2015-02-23 20:42:44.212512"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:42:44.215846' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:42:44.250023"], ["updated_at", "2015-02-23 20:42:44.250023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.7ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (632.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:43:55.684277"], ["updated_at", "2015-02-23 20:43:55.684277"]] SQL (0.3ms) 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-23 20:43:55.691377"], ["updated_at", "2015-02-23 20:43:55.691377"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:43:55.701636' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:43:55.711259"], ["updated_at", "2015-02-23 20:43:55.711259"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:43:55.714529' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:43:55.730516"], ["updated_at", "2015-02-23 20:43:55.730516"]] SQL (0.1ms) 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-23 20:43:55.732742"], ["updated_at", "2015-02-23 20:43:55.732742"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:43:55.734781' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:43:55.744539"], ["updated_at", "2015-02-23 20:43:55.744539"]] SQL (0.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:43:55.746826"], ["updated_at", "2015-02-23 20:43:55.746826"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:43:55.748928' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) 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-23 20:43:55.780108"], ["updated_at", "2015-02-23 20:43:55.780108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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-23 20:43:55.791881"], ["updated_at", "2015-02-23 20:43:55.791881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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-23 20:43:56.349337"], ["updated_at", "2015-02-23 20:43:56.349337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:43:56.381466"], ["updated_at", "2015-02-23 20:43:56.381466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:43:56.390794"], ["updated_at", "2015-02-23 20:43:56.390794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:43:56.428051"], ["updated_at", "2015-02-23 20:43:56.428051"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:43:56.430651"], ["updated_at", "2015-02-23 20:43:56.430651"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:43:56.434045' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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-23 20:43:56.463988"], ["updated_at", "2015-02-23 20:43:56.463988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.9ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:03.176101"], ["updated_at", "2015-02-23 20:44:03.176101"]] SQL (0.3ms) 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-23 20:44:03.181931"], ["updated_at", "2015-02-23 20:44:03.181931"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:03.193825' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:44:03.205082"], ["updated_at", "2015-02-23 20:44:03.205082"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:03.208794' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:03.225863"], ["updated_at", "2015-02-23 20:44:03.225863"]] SQL (0.1ms) 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-23 20:44:03.228531"], ["updated_at", "2015-02-23 20:44:03.228531"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:03.231242' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:03.244474"], ["updated_at", "2015-02-23 20:44:03.244474"]] SQL (0.2ms) 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-23 20:44:03.246781"], ["updated_at", "2015-02-23 20:44:03.246781"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:03.249747' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:44:03.282178"], ["updated_at", "2015-02-23 20:44:03.282178"]] SQL (0.3ms) 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-23 20:44:03.286666"], ["updated_at", "2015-02-23 20:44:03.286666"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:03.293050' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:03.329608"], ["updated_at", "2015-02-23 20:44:03.329608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:03.367903"], ["updated_at", "2015-02-23 20:44:03.367903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:03.377029"], ["updated_at", "2015-02-23 20:44:03.377029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:03.815349"], ["updated_at", "2015-02-23 20:44:03.815349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:03.840437"], ["updated_at", "2015-02-23 20:44:03.840437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:03.849006"], ["updated_at", "2015-02-23 20:44:03.849006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:03.863661"], ["updated_at", "2015-02-23 20:44:03.863661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:03.882358"], ["updated_at", "2015-02-23 20:44:03.882358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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-23 20:44:03.889051"], ["updated_at", "2015-02-23 20:44:03.889051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:03.893046"], ["updated_at", "2015-02-23 20:44:03.893046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:03.899969"], ["updated_at", "2015-02-23 20:44:03.899969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:03.906248"], ["updated_at", "2015-02-23 20:44:03.906248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) 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 16ms (Views: 15.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction  (0.0ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (633.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:44:18.670269"], ["updated_at", "2015-02-23 20:44:18.670269"]] SQL (0.3ms) 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-23 20:44:18.676862"], ["updated_at", "2015-02-23 20:44:18.676862"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:18.686702' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:44:18.697300"], ["updated_at", "2015-02-23 20:44:18.697300"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:18.700679' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:18.717550"], ["updated_at", "2015-02-23 20:44:18.717550"]] SQL (0.1ms) 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-23 20:44:18.719659"], ["updated_at", "2015-02-23 20:44:18.719659"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:18.722802' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:18.732868"], ["updated_at", "2015-02-23 20:44:18.732868"]] SQL (0.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:44:18.734942"], ["updated_at", "2015-02-23 20:44:18.734942"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:18.736918' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:19.276252"], ["updated_at", "2015-02-23 20:44:19.276252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:19.304951"], ["updated_at", "2015-02-23 20:44:19.304951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:44:19.314263"], ["updated_at", "2015-02-23 20:44:19.314263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:19.347104"], ["updated_at", "2015-02-23 20:44:19.347104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:19.353417"], ["updated_at", "2015-02-23 20:44:19.353417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:19.380740"], ["updated_at", "2015-02-23 20:44:19.380740"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:44:19.383343"], ["updated_at", "2015-02-23 20:44:19.383343"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:19.385486' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:19.397266"], ["updated_at", "2015-02-23 20:44:19.397266"]] SQL (0.3ms) 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-23 20:44:19.400355"], ["updated_at", "2015-02-23 20:44:19.400355"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:19.405351' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.5ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:28.854867"], ["updated_at", "2015-02-23 20:44:28.854867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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-23 20:44:28.898487"], ["updated_at", "2015-02-23 20:44:28.898487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:29.420733"], ["updated_at", "2015-02-23 20:44:29.420733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:29.467058"], ["updated_at", "2015-02-23 20:44:29.467058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:29.474198"], ["updated_at", "2015-02-23 20:44:29.474198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:29.487706"], ["updated_at", "2015-02-23 20:44:29.487706"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:44:29.490367"], ["updated_at", "2015-02-23 20:44:29.490367"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:29.496192' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:29.512182"], ["updated_at", "2015-02-23 20:44:29.512182"]] SQL (0.2ms) 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-23 20:44:29.515015"], ["updated_at", "2015-02-23 20:44:29.515015"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:29.517843' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:29.523845"], ["updated_at", "2015-02-23 20:44:29.523845"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:29.526772' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:29.541596"], ["updated_at", "2015-02-23 20:44:29.541596"]] SQL (0.2ms) 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-23 20:44:29.544122"], ["updated_at", "2015-02-23 20:44:29.544122"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:29.546756' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:29.584276"], ["updated_at", "2015-02-23 20:44:29.584276"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:44:29.586700"], ["updated_at", "2015-02-23 20:44:29.586700"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:29.589164' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:29.613926"], ["updated_at", "2015-02-23 20:44:29.613926"]] SQL (0.2ms) 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", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:44:29.616317"], ["updated_at", "2015-02-23 20:44:29.616317"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:29.618444' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (751.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:36.500093"], ["updated_at", "2015-02-23 20:44:36.500093"]] SQL (0.2ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:44:36.504934"], ["updated_at", "2015-02-23 20:44:36.504934"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:36.516032' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:36.532644"], ["updated_at", "2015-02-23 20:44:36.532644"]] SQL (0.2ms) 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", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:44:36.535306"], ["updated_at", "2015-02-23 20:44:36.535306"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:36.538158' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:37.055346"], ["updated_at", "2015-02-23 20:44:37.055346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:44:37.062476"], ["updated_at", "2015-02-23 20:44:37.062476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:37.109070"], ["updated_at", "2015-02-23 20:44:37.109070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:37.114486"], ["updated_at", "2015-02-23 20:44:37.114486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:37.138729"], ["updated_at", "2015-02-23 20:44:37.138729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:37.148396"], ["updated_at", "2015-02-23 20:44:37.148396"]] SQL (0.2ms) 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-23 20:44:37.150287"], ["updated_at", "2015-02-23 20:44:37.150287"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:37.152685' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:37.165710"], ["updated_at", "2015-02-23 20:44:37.165710"]] SQL (0.3ms) 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-23 20:44:37.167582"], ["updated_at", "2015-02-23 20:44:37.167582"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:37.171297' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:37.181443"], ["updated_at", "2015-02-23 20:44:37.181443"]] SQL (0.1ms) 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-23 20:44:37.183412"], ["updated_at", "2015-02-23 20:44:37.183412"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:37.185159' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:37.192505"], ["updated_at", "2015-02-23 20:44:37.192505"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:37.195273' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:46.651147"], ["updated_at", "2015-02-23 20:44:46.651147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:44:46.664918"], ["updated_at", "2015-02-23 20:44:46.664918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:44:47.194227"], ["updated_at", "2015-02-23 20:44:47.194227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:47.202241"], ["updated_at", "2015-02-23 20:44:47.202241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:47.227883"], ["updated_at", "2015-02-23 20:44:47.227883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:47.257273"], ["updated_at", "2015-02-23 20:44:47.257273"]] SQL (0.3ms) 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", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:44:47.261563"], ["updated_at", "2015-02-23 20:44:47.261563"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:47.272766' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:47.295868"], ["updated_at", "2015-02-23 20:44:47.295868"]] SQL (0.2ms) 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", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:44:47.300893"], ["updated_at", "2015-02-23 20:44:47.300893"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:47.303393' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:47.321296"], ["updated_at", "2015-02-23 20:44:47.321296"]] SQL (0.3ms) 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-23 20:44:47.324476"], ["updated_at", "2015-02-23 20:44:47.324476"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:47.327206' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:47.335896"], ["updated_at", "2015-02-23 20:44:47.335896"]] SQL (0.1ms) 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-23 20:44:47.337776"], ["updated_at", "2015-02-23 20:44:47.337776"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:47.339673' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:47.355568"], ["updated_at", "2015-02-23 20:44:47.355568"]] SQL (0.1ms) 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-23 20:44:47.357785"], ["updated_at", "2015-02-23 20:44:47.357785"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:47.359761' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:47.365071"], ["updated_at", "2015-02-23 20:44:47.365071"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:47.367747' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:44:54.194213"], ["updated_at", "2015-02-23 20:44:54.194213"]] SQL (0.2ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:44:54.199443"], ["updated_at", "2015-02-23 20:44:54.199443"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:54.209187' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:54.235476"], ["updated_at", "2015-02-23 20:44:54.235476"]] SQL (0.2ms) 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", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:44:54.238437"], ["updated_at", "2015-02-23 20:44:54.238437"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:54.240937' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:54.274224"], ["updated_at", "2015-02-23 20:44:54.274224"]] SQL (0.5ms) 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-23 20:44:54.277412"], ["updated_at", "2015-02-23 20:44:54.277412"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:54.282306' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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-23 20:44:54.298613"], ["updated_at", "2015-02-23 20:44:54.298613"]] SQL (0.2ms) 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-23 20:44:54.302889"], ["updated_at", "2015-02-23 20:44:54.302889"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:54.306352' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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-23 20:44:54.314107"], ["updated_at", "2015-02-23 20:44:54.314107"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:54.318877' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:54.333995"], ["updated_at", "2015-02-23 20:44:54.333995"]] SQL (0.1ms) 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-23 20:44:54.336452"], ["updated_at", "2015-02-23 20:44:54.336452"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:44:54.338510' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:54.366143"], ["updated_at", "2015-02-23 20:44:54.366143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:54.373790"], ["updated_at", "2015-02-23 20:44:54.373790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:44:54.870974"], ["updated_at", "2015-02-23 20:44:54.870974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:44:54.879450"], ["updated_at", "2015-02-23 20:44:54.879450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:44:54.920640"], ["updated_at", "2015-02-23 20:44:54.920640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:45:01.647715"], ["updated_at", "2015-02-23 20:45:01.647715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:01.680997"], ["updated_at", "2015-02-23 20:45:01.680997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:45:01.688767"], ["updated_at", "2015-02-23 20:45:01.688767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:01.721834"], ["updated_at", "2015-02-23 20:45:01.721834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:01.728996"], ["updated_at", "2015-02-23 20:45:01.728996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:45:01.743752"], ["updated_at", "2015-02-23 20:45:01.743752"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:45:01.747787"], ["updated_at", "2015-02-23 20:45:01.747787"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:01.753979' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:01.768867"], ["updated_at", "2015-02-23 20:45:01.768867"]] SQL (0.1ms) 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-23 20:45:01.771398"], ["updated_at", "2015-02-23 20:45:01.771398"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:01.774467' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:01.781510"], ["updated_at", "2015-02-23 20:45:01.781510"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:01.784098' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:01.797444"], ["updated_at", "2015-02-23 20:45:01.797444"]] SQL (0.1ms) 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-23 20:45:01.799608"], ["updated_at", "2015-02-23 20:45:01.799608"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:01.801853' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:01.831852"], ["updated_at", "2015-02-23 20:45:01.831852"]] SQL (0.3ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:45:01.834039"], ["updated_at", "2015-02-23 20:45:01.834039"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:01.837472' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:01.848798"], ["updated_at", "2015-02-23 20:45:01.848798"]] SQL (0.2ms) 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-23 20:45:01.851185"], ["updated_at", "2015-02-23 20:45:01.851185"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:01.854341' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (634.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:16.710063"], ["updated_at", "2015-02-23 20:45:16.710063"]] SQL (0.2ms) 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-23 20:45:16.715124"], ["updated_at", "2015-02-23 20:45:16.715124"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:16.726371' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:45:16.736063"], ["updated_at", "2015-02-23 20:45:16.736063"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:16.739520' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:16.755149"], ["updated_at", "2015-02-23 20:45:16.755149"]] SQL (0.3ms) 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-23 20:45:16.757635"], ["updated_at", "2015-02-23 20:45:16.757635"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:16.760480' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:16.774663"], ["updated_at", "2015-02-23 20:45:16.774663"]] SQL (0.1ms) 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-23 20:45:16.777103"], ["updated_at", "2015-02-23 20:45:16.777103"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:16.779460' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:16.810230"], ["updated_at", "2015-02-23 20:45:16.810230"]] SQL (0.2ms) 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-23 20:45:16.812533"], ["updated_at", "2015-02-23 20:45:16.812533"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:16.814876' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 UserWithSingularAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:45:16.833136"], ["updated_at", "2015-02-23 20:45:16.833136"]] SQL (0.2ms) 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", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:45:16.836797"], ["updated_at", "2015-02-23 20:45:16.836797"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:16.839192' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:16.866840"], ["updated_at", "2015-02-23 20:45:16.866840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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-23 20:45:16.875763"], ["updated_at", "2015-02-23 20:45:16.875763"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:17.391385"], ["updated_at", "2015-02-23 20:45:17.391385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:17.415937"], ["updated_at", "2015-02-23 20:45:17.415937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:45:17.422347"], ["updated_at", "2015-02-23 20:45:17.422347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (634.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:41.205538"], ["updated_at", "2015-02-23 20:45:41.205538"]] SQL (0.2ms) 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-23 20:45:41.210953"], ["updated_at", "2015-02-23 20:45:41.210953"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:41.220872' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:45:41.232309"], ["updated_at", "2015-02-23 20:45:41.232309"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:41.235643' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:41.253104"], ["updated_at", "2015-02-23 20:45:41.253104"]] SQL (0.2ms) 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-23 20:45:41.255207"], ["updated_at", "2015-02-23 20:45:41.255207"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:41.257945' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:41.267985"], ["updated_at", "2015-02-23 20:45:41.267985"]] SQL (0.3ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:45:41.270219"], ["updated_at", "2015-02-23 20:45:41.270219"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:41.273599' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) 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-23 20:45:41.308454"], ["updated_at", "2015-02-23 20:45:41.308454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:45:41.317200"], ["updated_at", "2015-02-23 20:45:41.317200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:45:41.827468"], ["updated_at", "2015-02-23 20:45:41.827468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:41.855296"], ["updated_at", "2015-02-23 20:45:41.855296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:41.862871"], ["updated_at", "2015-02-23 20:45:41.862871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:45:41.897016"], ["updated_at", "2015-02-23 20:45:41.897016"]] SQL (0.3ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:45:41.901078"], ["updated_at", "2015-02-23 20:45:41.901078"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:41.905438' WHERE "users"."id" = ? [["id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:45:41.928047"], ["updated_at", "2015-02-23 20:45:41.928047"]] SQL (0.2ms) 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-23 20:45:41.931017"], ["updated_at", "2015-02-23 20:45:41.931017"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:45:41.933517' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.4ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:05.758228"], ["updated_at", "2015-02-23 20:46:05.758228"]] SQL (0.3ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:46:05.764491"], ["updated_at", "2015-02-23 20:46:05.764491"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:05.774234' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:46:05.792530"], ["updated_at", "2015-02-23 20:46:05.792530"]] SQL (0.8ms) 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", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:46:05.796519"], ["updated_at", "2015-02-23 20:46:05.796519"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:05.800853' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:06.345167"], ["updated_at", "2015-02-23 20:46:06.345167"]] SQL (0.3ms) 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-23 20:46:06.348337"], ["updated_at", "2015-02-23 20:46:06.348337"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:06.351912' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:06.370288"], ["updated_at", "2015-02-23 20:46:06.370288"]] SQL (0.2ms) 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-23 20:46:06.372732"], ["updated_at", "2015-02-23 20:46:06.372732"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:06.376468' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:46:06.386981"], ["updated_at", "2015-02-23 20:46:06.386981"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:06.390796' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:06.406386"], ["updated_at", "2015-02-23 20:46:06.406386"]] SQL (0.4ms) 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-23 20:46:06.409179"], ["updated_at", "2015-02-23 20:46:06.409179"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:06.414381' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:06.451171"], ["updated_at", "2015-02-23 20:46:06.451171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:46:06.459149"], ["updated_at", "2015-02-23 20:46:06.459149"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:06.500583"], ["updated_at", "2015-02-23 20:46:06.500583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:46:06.548998"], ["updated_at", "2015-02-23 20:46:06.548998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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-23 20:46:06.558921"], ["updated_at", "2015-02-23 20:46:06.558921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) CREATE 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)   (0.3ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:46:39.051565"], ["updated_at", "2015-02-23 20:46:39.051565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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-23 20:46:39.064238"], ["updated_at", "2015-02-23 20:46:39.064238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:39.095967"], ["updated_at", "2015-02-23 20:46:39.095967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:46:39.101820"], ["updated_at", "2015-02-23 20:46:39.101820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:46:39.148026"], ["updated_at", "2015-02-23 20:46:39.148026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:39.180842"], ["updated_at", "2015-02-23 20:46:39.180842"]] SQL (0.4ms) 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", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:46:39.184198"], ["updated_at", "2015-02-23 20:46:39.184198"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:39.193424' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:46:39.215649"], ["updated_at", "2015-02-23 20:46:39.215649"]] SQL (0.2ms) 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", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:46:39.217586"], ["updated_at", "2015-02-23 20:46:39.217586"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:39.219815' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:46:39.230313"], ["updated_at", "2015-02-23 20:46:39.230313"]] SQL (0.3ms) 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-23 20:46:39.232385"], ["updated_at", "2015-02-23 20:46:39.232385"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:39.235789' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:46:39.248599"], ["updated_at", "2015-02-23 20:46:39.248599"]] SQL (0.3ms) 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-23 20:46:39.253584"], ["updated_at", "2015-02-23 20:46:39.253584"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:39.257250' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:46:39.281458"], ["updated_at", "2015-02-23 20:46:39.281458"]] SQL (0.2ms) 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-23 20:46:39.284673"], ["updated_at", "2015-02-23 20:46:39.284673"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:39.287868' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:39.295344"], ["updated_at", "2015-02-23 20:46:39.295344"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:39.298296' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:47.608588"], ["updated_at", "2015-02-23 20:46:47.608588"]] SQL (0.2ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:46:47.613872"], ["updated_at", "2015-02-23 20:46:47.613872"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:47.622554' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:47.642516"], ["updated_at", "2015-02-23 20:46:47.642516"]] SQL (0.2ms) 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", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:46:47.644857"], ["updated_at", "2015-02-23 20:46:47.644857"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:47.647336' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" ORDER BY "addresses"."updated_at" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:46:47.676745"], ["updated_at", "2015-02-23 20:46:47.676745"]] SQL (0.2ms) 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-23 20:46:47.679390"], ["updated_at", "2015-02-23 20:46:47.679390"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:47.681539' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:46:47.694977"], ["updated_at", "2015-02-23 20:46:47.694977"]] SQL (0.1ms) 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-23 20:46:47.697104"], ["updated_at", "2015-02-23 20:46:47.697104"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:47.699634' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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-23 20:46:47.705945"], ["updated_at", "2015-02-23 20:46:47.705945"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:47.710002' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:46:47.722740"], ["updated_at", "2015-02-23 20:46:47.722740"]] SQL (0.2ms) 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-23 20:46:47.726203"], ["updated_at", "2015-02-23 20:46:47.726203"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:46:47.728567' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:47.762374"], ["updated_at", "2015-02-23 20:46:47.762374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:46:47.770094"], ["updated_at", "2015-02-23 20:46:47.770094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:46:48.280873"], ["updated_at", "2015-02-23 20:46:48.280873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:46:48.319063"], ["updated_at", "2015-02-23 20:46:48.319063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:46:48.325318"], ["updated_at", "2015-02-23 20:46:48.325318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:04.368691"], ["updated_at", "2015-02-23 20:49:04.368691"]] SQL (0.2ms) 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-23 20:49:04.373933"], ["updated_at", "2015-02-23 20:49:04.373933"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:04.382851' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:49:04.393551"], ["updated_at", "2015-02-23 20:49:04.393551"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:04.397180' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:49:04.411916"], ["updated_at", "2015-02-23 20:49:04.411916"]] SQL (0.1ms) 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-23 20:49:04.414063"], ["updated_at", "2015-02-23 20:49:04.414063"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:04.416053' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:49:04.424974"], ["updated_at", "2015-02-23 20:49:04.424974"]] SQL (0.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:49:04.427571"], ["updated_at", "2015-02-23 20:49:04.427571"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:04.429668' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:04.941384"], ["updated_at", "2015-02-23 20:49:04.941384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:49:04.966650"], ["updated_at", "2015-02-23 20:49:04.966650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:04.973029"], ["updated_at", "2015-02-23 20:49:04.973029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:05.000902"], ["updated_at", "2015-02-23 20:49:05.000902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:05.009675"], ["updated_at", "2015-02-23 20:49:05.009675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:49:05.044615"], ["updated_at", "2015-02-23 20:49:05.044615"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:49:05.046895"], ["updated_at", "2015-02-23 20:49:05.046895"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:05.049040' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" ORDER BY "addresses"."updated_at" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:05.064062"], ["updated_at", "2015-02-23 20:49:05.064062"]] SQL (0.2ms) 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-23 20:49:05.067274"], ["updated_at", "2015-02-23 20:49:05.067274"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:05.069565' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.3ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (634.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:49:37.619154"], ["updated_at", "2015-02-23 20:49:37.619154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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-23 20:49:37.637801"], ["updated_at", "2015-02-23 20:49:37.637801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:38.176902"], ["updated_at", "2015-02-23 20:49:38.176902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:49:38.182510"], ["updated_at", "2015-02-23 20:49:38.182510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:38.208413"], ["updated_at", "2015-02-23 20:49:38.208413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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-23 20:49:38.238311"], ["updated_at", "2015-02-23 20:49:38.238311"]] SQL (0.3ms) 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", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:49:38.241123"], ["updated_at", "2015-02-23 20:49:38.241123"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:38.247908' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:38.266059"], ["updated_at", "2015-02-23 20:49:38.266059"]] SQL (0.1ms) 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", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:49:38.269818"], ["updated_at", "2015-02-23 20:49:38.269818"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:38.272023' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:49:38.290441"], ["updated_at", "2015-02-23 20:49:38.290441"]] SQL (0.3ms) 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-23 20:49:38.296868"], ["updated_at", "2015-02-23 20:49:38.296868"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:38.300862' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:49:38.310671"], ["updated_at", "2015-02-23 20:49:38.310671"]] SQL (0.2ms) 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-23 20:49:38.315066"], ["updated_at", "2015-02-23 20:49:38.315066"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:38.318495' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:49:38.333548"], ["updated_at", "2015-02-23 20:49:38.333548"]] SQL (0.1ms) 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-23 20:49:38.335464"], ["updated_at", "2015-02-23 20:49:38.335464"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:38.337722' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:49:38.345530"], ["updated_at", "2015-02-23 20:49:38.345530"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:49:38.348408' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:50:08.180956"], ["updated_at", "2015-02-23 20:50:08.180956"]] SQL (0.3ms) 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-23 20:50:08.186549"], ["updated_at", "2015-02-23 20:50:08.186549"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:08.200565' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:50:08.211436"], ["updated_at", "2015-02-23 20:50:08.211436"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:08.215560' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:08.236257"], ["updated_at", "2015-02-23 20:50:08.236257"]] SQL (0.2ms) 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-23 20:50:08.238283"], ["updated_at", "2015-02-23 20:50:08.238283"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:08.240652' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:08.254123"], ["updated_at", "2015-02-23 20:50:08.254123"]] SQL (0.2ms) 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-23 20:50:08.256509"], ["updated_at", "2015-02-23 20:50:08.256509"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:08.259565' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:50:08.292514"], ["updated_at", "2015-02-23 20:50:08.292514"]] SQL (0.3ms) 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-23 20:50:08.295892"], ["updated_at", "2015-02-23 20:50:08.295892"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:08.299080' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "12347 Fake Street"], ["updated_at", "2015-02-23 20:50:08.305180"], ["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:08.307785' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:08.319143"], ["updated_at", "2015-02-23 20:50:08.319143"]] SQL (0.2ms) 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-23 20:50:08.323607"], ["updated_at", "2015-02-23 20:50:08.323607"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:08.327124' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:08.358464"], ["updated_at", "2015-02-23 20:50:08.358464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:50:08.365827"], ["updated_at", "2015-02-23 20:50:08.365827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:08.872508"], ["updated_at", "2015-02-23 20:50:08.872508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:08.902219"], ["updated_at", "2015-02-23 20:50:08.902219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:50:08.913500"], ["updated_at", "2015-02-23 20:50:08.913500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:50:23.075196"], ["updated_at", "2015-02-23 20:50:23.075196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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-23 20:50:23.088619"], ["updated_at", "2015-02-23 20:50:23.088619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:23.593100"], ["updated_at", "2015-02-23 20:50:23.593100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:23.600055"], ["updated_at", "2015-02-23 20:50:23.600055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:50:23.626347"], ["updated_at", "2015-02-23 20:50:23.626347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:23.656426"], ["updated_at", "2015-02-23 20:50:23.656426"]] SQL (0.2ms) 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", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:50:23.659347"], ["updated_at", "2015-02-23 20:50:23.659347"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:23.665059' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:23.685916"], ["updated_at", "2015-02-23 20:50:23.685916"]] SQL (0.2ms) 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", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:50:23.688352"], ["updated_at", "2015-02-23 20:50:23.688352"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:23.690827' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "12346 Fake Street"], ["updated_at", "2015-02-23 20:50:23.696311"], ["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:23.698693' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:23.710294"], ["updated_at", "2015-02-23 20:50:23.710294"]] SQL (0.4ms) 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-23 20:50:23.712868"], ["updated_at", "2015-02-23 20:50:23.712868"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:23.717016' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:23.730814"], ["updated_at", "2015-02-23 20:50:23.730814"]] SQL (0.2ms) 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-23 20:50:23.734543"], ["updated_at", "2015-02-23 20:50:23.734543"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:23.737059' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:23.751341"], ["updated_at", "2015-02-23 20:50:23.751341"]] SQL (0.1ms) 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-23 20:50:23.753529"], ["updated_at", "2015-02-23 20:50:23.753529"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:23.755673' WHERE "users"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:23.762462"], ["updated_at", "2015-02-23 20:50:23.762462"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:23.765796' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.9ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (0.9ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:50:42.495616"], ["updated_at", "2015-02-23 20:50:42.495616"]] SQL (0.2ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:50:42.500971"], ["updated_at", "2015-02-23 20:50:42.500971"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:42.511358' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:42.530090"], ["updated_at", "2015-02-23 20:50:42.530090"]] SQL (0.1ms) 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", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:50:42.532945"], ["updated_at", "2015-02-23 20:50:42.532945"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:42.535416' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:42.568876"], ["updated_at", "2015-02-23 20:50:42.568876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) 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-23 20:50:42.575822"], ["updated_at", "2015-02-23 20:50:42.575822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:43.087714"], ["updated_at", "2015-02-23 20:50:43.087714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:43.094220"], ["updated_at", "2015-02-23 20:50:43.094220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:43.141912"], ["updated_at", "2015-02-23 20:50:43.141912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:43.152467"], ["updated_at", "2015-02-23 20:50:43.152467"]] SQL (0.3ms) 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-23 20:50:43.154907"], ["updated_at", "2015-02-23 20:50:43.154907"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:43.158559' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:43.174616"], ["updated_at", "2015-02-23 20:50:43.174616"]] SQL (0.1ms) 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-23 20:50:43.177036"], ["updated_at", "2015-02-23 20:50:43.177036"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:43.179537' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:50:43.189205"], ["updated_at", "2015-02-23 20:50:43.189205"]] SQL (0.1ms) 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-23 20:50:43.191645"], ["updated_at", "2015-02-23 20:50:43.191645"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:43.194002' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:50:43.199816"], ["updated_at", "2015-02-23 20:50:43.199816"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:50:43.202411' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE 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)   (0.3ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.6ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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-23 20:51:09.657766"], ["updated_at", "2015-02-23 20:51:09.657766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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-23 20:51:09.670963"], ["updated_at", "2015-02-23 20:51:09.670963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:09.700262"], ["updated_at", "2015-02-23 20:51:09.700262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:09.705717"], ["updated_at", "2015-02-23 20:51:09.705717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:51:09.735616"], ["updated_at", "2015-02-23 20:51:09.735616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:09.764361"], ["updated_at", "2015-02-23 20:51:09.764361"]] SQL (0.2ms) 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", "12344 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:51:09.766870"], ["updated_at", "2015-02-23 20:51:09.766870"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:09.772510' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:09.794321"], ["updated_at", "2015-02-23 20:51:09.794321"]] SQL (0.2ms) 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", "12345 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:51:09.796864"], ["updated_at", "2015-02-23 20:51:09.796864"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:09.799194' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:09.812409"], ["updated_at", "2015-02-23 20:51:09.812409"]] SQL (0.2ms) 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-23 20:51:09.814608"], ["updated_at", "2015-02-23 20:51:09.814608"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:09.817064' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:09.827784"], ["updated_at", "2015-02-23 20:51:09.827784"]] SQL (0.1ms) 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-23 20:51:09.829780"], ["updated_at", "2015-02-23 20:51:09.829780"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:09.832100' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:09.847996"], ["updated_at", "2015-02-23 20:51:09.847996"]] SQL (0.1ms) 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-23 20:51:09.849916"], ["updated_at", "2015-02-23 20:51:09.849916"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:09.851697' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:09.857422"], ["updated_at", "2015-02-23 20:51:09.857422"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:09.859898' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.8ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (632.8ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (1.1ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.2ms) 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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:22.653353"], ["updated_at", "2015-02-23 20:51:22.653353"]] SQL (0.2ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:51:22.659006"], ["updated_at", "2015-02-23 20:51:22.659006"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:22.668800' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:22.685407"], ["updated_at", "2015-02-23 20:51:22.685407"]] SQL (0.2ms) 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", "12342 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:51:22.687769"], ["updated_at", "2015-02-23 20:51:22.687769"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:22.691096' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:22.722843"], ["updated_at", "2015-02-23 20:51:22.722843"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:51:22.725391"], ["updated_at", "2015-02-23 20:51:22.725391"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:22.729078' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:22.745735"], ["updated_at", "2015-02-23 20:51:22.745735"]] SQL (0.1ms) 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-23 20:51:22.748128"], ["updated_at", "2015-02-23 20:51:22.748128"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:22.750148' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:51:22.758222"], ["updated_at", "2015-02-23 20:51:22.758222"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:22.761669' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:22.774742"], ["updated_at", "2015-02-23 20:51:22.774742"]] SQL (0.2ms) 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-23 20:51:22.777423"], ["updated_at", "2015-02-23 20:51:22.777423"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:22.779798' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:51:22.810101"], ["updated_at", "2015-02-23 20:51:22.810101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:22.817369"], ["updated_at", "2015-02-23 20:51:22.817369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:23.348355"], ["updated_at", "2015-02-23 20:51:23.348355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:23.378974"], ["updated_at", "2015-02-23 20:51:23.378974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:23.387114"], ["updated_at", "2015-02-23 20:51:23.387114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.7ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:51:44.434966"], ["updated_at", "2015-02-23 20:51:44.434966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) 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-23 20:51:44.492856"], ["updated_at", "2015-02-23 20:51:44.492856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:44.940639"], ["updated_at", "2015-02-23 20:51:44.940639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:51:44.951614"], ["updated_at", "2015-02-23 20:51:44.951614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:44.959600"], ["updated_at", "2015-02-23 20:51:44.959600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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-23 20:51:44.965433"], ["updated_at", "2015-02-23 20:51:44.965433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:45.027114"], ["updated_at", "2015-02-23 20:51:45.027114"]] SQL (0.2ms) 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-23 20:51:45.029479"], ["updated_at", "2015-02-23 20:51:45.029479"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:45.035610' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:45.053394"], ["updated_at", "2015-02-23 20:51:45.053394"]] SQL (0.2ms) 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", "12347 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:51:45.056287"], ["updated_at", "2015-02-23 20:51:45.056287"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:45.059124' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:51:45.096624"], ["updated_at", "2015-02-23 20:51:45.096624"]] SQL (0.3ms) 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-23 20:51:45.100853"], ["updated_at", "2015-02-23 20:51:45.100853"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:45.104001' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:45.119650"], ["updated_at", "2015-02-23 20:51:45.119650"]] SQL (0.2ms) 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-23 20:51:45.121876"], ["updated_at", "2015-02-23 20:51:45.121876"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:45.124547' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:51:45.132088"], ["updated_at", "2015-02-23 20:51:45.132088"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:45.136470' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:45.154249"], ["updated_at", "2015-02-23 20:51:45.154249"]] SQL (0.2ms) 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-23 20:51:45.156819"], ["updated_at", "2015-02-23 20:51:45.156819"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:45.160785' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:45.187465"], ["updated_at", "2015-02-23 20:51:45.187465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:45.193815"], ["updated_at", "2015-02-23 20:51:45.193815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:45.221545"], ["updated_at", "2015-02-23 20:51:45.221545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:45.267090"], ["updated_at", "2015-02-23 20:51:45.267090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:45.273194"], ["updated_at", "2015-02-23 20:51:45.273194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (1.7ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.7ms) 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'  (1.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.4ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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.8ms) Completed 200 OK in 39ms (Views: 14.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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 7ms (Views: 0.8ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) 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-23 20:51:53.324205"], ["updated_at", "2015-02-23 20:51:53.324205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:51:53.395645"], ["updated_at", "2015-02-23 20:51:53.395645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) 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-23 20:51:53.403999"], ["updated_at", "2015-02-23 20:51:53.403999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:53.441269"], ["updated_at", "2015-02-23 20:51:53.441269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:53.450308"], ["updated_at", "2015-02-23 20:51:53.450308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:51:53.480832"], ["updated_at", "2015-02-23 20:51:53.480832"]] SQL (0.4ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:51:53.485061"], ["updated_at", "2015-02-23 20:51:53.485061"]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:53.494599' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:53.515424"], ["updated_at", "2015-02-23 20:51:53.515424"]] SQL (0.2ms) 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-23 20:51:53.519552"], ["updated_at", "2015-02-23 20:51:53.519552"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:53.523419' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:51:53.532581"], ["updated_at", "2015-02-23 20:51:53.532581"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:53.536444' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:53.560407"], ["updated_at", "2015-02-23 20:51:53.560407"]] SQL (0.2ms) 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-23 20:51:53.563191"], ["updated_at", "2015-02-23 20:51:53.563191"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:53.566762' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:53.613410"], ["updated_at", "2015-02-23 20:51:53.613410"]] SQL (0.3ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:51:53.616083"], ["updated_at", "2015-02-23 20:51:53.616083"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:53.618584' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:53.633099"], ["updated_at", "2015-02-23 20:51:53.633099"]] SQL (0.2ms) 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", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:51:53.636509"], ["updated_at", "2015-02-23 20:51:53.636509"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:51:53.638948' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:51:53.646039"], ["updated_at", "2015-02-23 20:51:53.646039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:53.652030"], ["updated_at", "2015-02-23 20:51:53.652030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:51:53.657200"], ["updated_at", "2015-02-23 20:51:53.657200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:51:53.666416"], ["updated_at", "2015-02-23 20:51:53.666416"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:51:53.678791"], ["updated_at", "2015-02-23 20:51:53.678791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:51:53.686217"], ["updated_at", "2015-02-23 20:51:53.686217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.5ms) CREATE 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)   (0.2ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.2ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:52:00.349956"], ["updated_at", "2015-02-23 20:52:00.349956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:00.940850"], ["updated_at", "2015-02-23 20:52:00.940850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:00.947243"], ["updated_at", "2015-02-23 20:52:00.947243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:00.952617"], ["updated_at", "2015-02-23 20:52:00.952617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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-23 20:52:00.955651"], ["updated_at", "2015-02-23 20:52:00.955651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:00.963529"], ["updated_at", "2015-02-23 20:52:00.963529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:01.019287"], ["updated_at", "2015-02-23 20:52:01.019287"]] SQL (0.2ms) 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-23 20:52:01.021684"], ["updated_at", "2015-02-23 20:52:01.021684"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:01.027651' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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-23 20:52:01.046634"], ["updated_at", "2015-02-23 20:52:01.046634"]] SQL (0.2ms) 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-23 20:52:01.050066"], ["updated_at", "2015-02-23 20:52:01.050066"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:01.052979' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:01.079217"], ["updated_at", "2015-02-23 20:52:01.079217"]] SQL (0.3ms) 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-23 20:52:01.082158"], ["updated_at", "2015-02-23 20:52:01.082158"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:01.085037' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:01.098557"], ["updated_at", "2015-02-23 20:52:01.098557"]] SQL (0.1ms) 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-23 20:52:01.101075"], ["updated_at", "2015-02-23 20:52:01.101075"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:01.103467' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:01.108951"], ["updated_at", "2015-02-23 20:52:01.108951"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:01.111176' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:01.126348"], ["updated_at", "2015-02-23 20:52:01.126348"]] SQL (0.2ms) 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-23 20:52:01.128793"], ["updated_at", "2015-02-23 20:52:01.128793"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:01.131506' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:01.158154"], ["updated_at", "2015-02-23 20:52:01.158154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:52:01.165708"], ["updated_at", "2015-02-23 20:52:01.165708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:01.192969"], ["updated_at", "2015-02-23 20:52:01.192969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:01.198792"], ["updated_at", "2015-02-23 20:52:01.198792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:52:01.241832"], ["updated_at", "2015-02-23 20:52:01.241832"]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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.7ms) Completed 200 OK in 16ms (Views: 13.1ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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: 1.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by Effective::AddressesController#subregions as HTML Parameters: {"country_code"=>"NOPE"} Rendered text template (0.1ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (99.4ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (634.5ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.8ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.3ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:53.181313"], ["updated_at", "2015-02-23 20:52:53.181313"]] SQL (0.2ms) 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-23 20:52:53.186381"], ["updated_at", "2015-02-23 20:52:53.186381"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:53.195071' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:52:53.206121"], ["updated_at", "2015-02-23 20:52:53.206121"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:53.210435' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:53.225253"], ["updated_at", "2015-02-23 20:52:53.225253"]] SQL (0.2ms) 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-23 20:52:53.227994"], ["updated_at", "2015-02-23 20:52:53.227994"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:53.231500' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:53.243099"], ["updated_at", "2015-02-23 20:52:53.243099"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:52:53.245906"], ["updated_at", "2015-02-23 20:52:53.245906"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:53.248471' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:53.696407"], ["updated_at", "2015-02-23 20:52:53.696407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:53.722902"], ["updated_at", "2015-02-23 20:52:53.722902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:53.729462"], ["updated_at", "2015-02-23 20:52:53.729462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:53.761037"], ["updated_at", "2015-02-23 20:52:53.761037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:53.770175"], ["updated_at", "2015-02-23 20:52:53.770175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:53.802406"], ["updated_at", "2015-02-23 20:52:53.802406"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:52:53.805271"], ["updated_at", "2015-02-23 20:52:53.805271"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:53.807884' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:52:53.823038"], ["updated_at", "2015-02-23 20:52:53.823038"]] SQL (0.2ms) 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", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:52:53.825720"], ["updated_at", "2015-02-23 20:52:53.825720"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:52:53.828278' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) 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 24ms (Views: 21.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:52:53.900467"], ["updated_at", "2015-02-23 20:52:53.900467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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-23 20:52:53.904642"], ["updated_at", "2015-02-23 20:52:53.904642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:53.912629"], ["updated_at", "2015-02-23 20:52:53.912629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:53.917744"], ["updated_at", "2015-02-23 20:52:53.917744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:52:53.923215"], ["updated_at", "2015-02-23 20:52:53.923215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:52:53.929321"], ["updated_at", "2015-02-23 20:52:53.929321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (101.2ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (637.3ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.3ms) 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'  (1.3ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:53:23.367175"], ["updated_at", "2015-02-23 20:53:23.367175"]] SQL (0.3ms) 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-23 20:53:23.372092"], ["updated_at", "2015-02-23 20:53:23.372092"]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:23.382475' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:53:23.391634"], ["updated_at", "2015-02-23 20:53:23.391634"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:23.395024' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:23.411277"], ["updated_at", "2015-02-23 20:53:23.411277"]] SQL (0.1ms) 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-23 20:53:23.413228"], ["updated_at", "2015-02-23 20:53:23.413228"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:23.415259' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:23.425223"], ["updated_at", "2015-02-23 20:53:23.425223"]] SQL (0.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:53:23.427228"], ["updated_at", "2015-02-23 20:53:23.427228"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:23.429076' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:53:23.938634"], ["updated_at", "2015-02-23 20:53:23.938634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:53:23.965579"], ["updated_at", "2015-02-23 20:53:23.965579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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-23 20:53:23.972833"], ["updated_at", "2015-02-23 20:53:23.972833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:24.005150"], ["updated_at", "2015-02-23 20:53:24.005150"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:24.012534"], ["updated_at", "2015-02-23 20:53:24.012534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:24.044270"], ["updated_at", "2015-02-23 20:53:24.044270"]] SQL (0.3ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:53:24.046527"], ["updated_at", "2015-02-23 20:53:24.046527"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:24.049240' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:24.067931"], ["updated_at", "2015-02-23 20:53:24.067931"]] SQL (0.2ms) 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", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:53:24.070072"], ["updated_at", "2015-02-23 20:53:24.070072"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:24.072498' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (566.0ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (1.0ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.1ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:53:43.323294"], ["updated_at", "2015-02-23 20:53:43.323294"]] SQL (0.2ms) 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-23 20:53:43.328844"], ["updated_at", "2015-02-23 20:53:43.328844"]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:43.339585' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:53:43.351852"], ["updated_at", "2015-02-23 20:53:43.351852"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:43.356400' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.4ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:43.373551"], ["updated_at", "2015-02-23 20:53:43.373551"]] SQL (0.2ms) 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-23 20:53:43.375715"], ["updated_at", "2015-02-23 20:53:43.375715"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:43.378549' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:43.388934"], ["updated_at", "2015-02-23 20:53:43.388934"]] SQL (0.1ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:53:43.391375"], ["updated_at", "2015-02-23 20:53:43.391375"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:43.394411' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:53:43.915602"], ["updated_at", "2015-02-23 20:53:43.915602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:43.941777"], ["updated_at", "2015-02-23 20:53:43.941777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:53:43.948985"], ["updated_at", "2015-02-23 20:53:43.948985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:53:43.980342"], ["updated_at", "2015-02-23 20:53:43.980342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:53:43.987818"], ["updated_at", "2015-02-23 20:53:43.987818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:44.022410"], ["updated_at", "2015-02-23 20:53:44.022410"]] SQL (0.2ms) 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", "12349 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:53:44.024809"], ["updated_at", "2015-02-23 20:53:44.024809"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:44.027355' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "123410 Fake Street"], ["updated_at", "2015-02-23 20:53:44.033610"], ["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:44.036774' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:44.051309"], ["updated_at", "2015-02-23 20:53:44.051309"]] SQL (0.2ms) 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", "123411 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:53:44.053734"], ["updated_at", "2015-02-23 20:53:44.053734"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:53:44.056043' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) 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 24ms (Views: 22.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:44.126816"], ["updated_at", "2015-02-23 20:53:44.126816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:53:44.132811"], ["updated_at", "2015-02-23 20:53:44.132811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:53:44.138378"], ["updated_at", "2015-02-23 20:53:44.138378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:53:44.143516"], ["updated_at", "2015-02-23 20:53:44.143516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:44.150158"], ["updated_at", "2015-02-23 20:53:44.150158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:53:44.156078"], ["updated_at", "2015-02-23 20:53:44.156078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (100.6ms) CREATE 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)   (0.1ms) select sqlite_version(*)  (633.2ms) CREATE INDEX "index_addresses_on_addressable_id" ON "addresses" ("addressable_id")  (0.1ms) 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'  (0.9ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")  (1.0ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('4') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:54:23.572157"], ["updated_at", "2015-02-23 20:54:23.572157"]] SQL (0.2ms) 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", "12341 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:54:23.577050"], ["updated_at", "2015-02-23 20:54:23.577050"]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:54:23.587808' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "addresses" SET "address1" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["address1", "12342 Fake Street"], ["updated_at", "2015-02-23 20:54:23.598686"], ["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:54:23.601676' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithSingularAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:54:23.615858"], ["updated_at", "2015-02-23 20:54:23.615858"]] SQL (0.2ms) 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", "12343 Fake Street"], ["city", "San Antonio"], ["state_code", "TX"], ["country_code", "US"], ["postal_code", "92387"], ["addressable_id", 1], ["created_at", "2015-02-23 20:54:23.617646"], ["updated_at", "2015-02-23 20:54:23.617646"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:54:23.621214' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:54:23.649303"], ["updated_at", "2015-02-23 20:54:23.649303"]] SQL (0.2ms) INSERT INTO "addresses" ("category", "address1", "city", "state_code", "country_code", "postal_code", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["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-23 20:54:23.651500"], ["updated_at", "2015-02-23 20:54:23.651500"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:54:23.653768' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:54:23.668612"], ["updated_at", "2015-02-23 20:54:23.668612"]] SQL (0.1ms) 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-23 20:54:23.670441"], ["updated_at", "2015-02-23 20:54:23.670441"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:54:23.672360' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-23 20:54:23.679643"], ["updated_at", "2015-02-23 20:54:23.679643"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:54:23.681903' WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses" UserWithAddress Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Effective::Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."updated_at" ASC [["addressable_id", 1], ["addressable_type", "User"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-23 20:54:23.694814"], ["updated_at", "2015-02-23 20:54:23.694814"]] SQL (0.1ms) 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-23 20:54:23.696752"], ["updated_at", "2015-02-23 20:54:23.696752"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-23 20:54:23.698844' WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "addresses"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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-23 20:54:23.722423"], ["updated_at", "2015-02-23 20:54:23.722423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:54:23.731578"], ["updated_at", "2015-02-23 20:54:23.731578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:54:23.764411"], ["updated_at", "2015-02-23 20:54:23.764411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-23 20:54:23.775984"], ["updated_at", "2015-02-23 20:54:23.775984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) 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-23 20:54:24.277228"], ["updated_at", "2015-02-23 20:54:24.277228"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction